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 { ...@@ -46,7 +46,7 @@ struct {
// Validates values of build attributes. Prints them to Stream if // Validates values of build attributes. Prints them to Stream if
// Stream is non-null. // Stream is non-null.
void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) { void validateAndGenerateBuildAttributes(Ostream *Stream) {
// List the supported targets. // List the supported targets.
if (Stream) { if (Stream) {
#define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n"; #define SUBZERO_TARGET(TARGET) *Stream << "target_" #TARGET << "\n";
...@@ -80,8 +80,7 @@ void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) { ...@@ -80,8 +80,7 @@ void ValidateAndGenerateBuildAttributes(const ClFlags &Flags, Ostream *Stream) {
void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx, void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx,
std::unique_ptr<llvm::DataStreamer> &&InputStream) { std::unique_ptr<llvm::DataStreamer> &&InputStream) {
ValidateAndGenerateBuildAttributes( validateAndGenerateBuildAttributes(
Ctx.getFlags(),
ExtraFlags.getGenerateBuildAtts() ? &Ctx.getStrDump() : nullptr); ExtraFlags.getGenerateBuildAtts() ? &Ctx.getStrDump() : nullptr);
if (ExtraFlags.getGenerateBuildAtts()) if (ExtraFlags.getGenerateBuildAtts())
return Ctx.getErrorStatus()->assign(EC_None); 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