Commit 0769299d by Jim Stichnoth

Subzero: Remove a compile-time warning.

BUG= none R=kschimpf@google.com Review URL: https://codereview.chromium.org/1161353002
parent 0fa6c5a0
......@@ -46,7 +46,7 @@ struct {
// Validates values of build attributes. Prints them to Stream if
// Stream is non-null.
void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
void validateAndGenerateBuildAttributes(Ostream *Stream) {
// List the supported targets.
if (Stream) {
#define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n";
......@@ -80,8 +80,7 @@ void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx,
std::unique_ptr<llvm::DataStreamer> &&InputStream) {
ValidateAndGenerateBuildAttributes(
Ctx.getFlags(),
validateAndGenerateBuildAttributes(
ExtraFlags.getGenerateBuildAtts() ? &Ctx.getStrDump() : nullptr);
if (ExtraFlags.getGenerateBuildAtts())
return Ctx.getErrorStatus()->assign(EC_None);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment