[bugpoint] set Message after tool configuration
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 24 Jan 2013 16:49:12 +0000 (16:49 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 24 Jan 2013 16:49:12 +0000 (16:49 +0000)
Set the message returned after the GCC runner has been constructed as otherwise
the message will be overwritten by the construction of the runner, resulting in
misleading messages.

Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Reviewed-by: Chandler Carruth <chandlerc@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173359 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ToolRunner.cpp

index e7d3978e26ea0bbe74f9b83342bb4ee6376c9a86..735061d8bc0749e0cc3bb9b53a1c424ac640e23a 100644 (file)
@@ -531,12 +531,12 @@ LLC *AbstractInterpreter::createLLC(const char *Argv0,
     return 0;
   }
 
-  Message = "Found llc: " + LLCPath + "\n";
   GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
   if (!gcc) {
     errs() << Message << "\n";
     exit(1);
   }
+  Message = "Found llc: " + LLCPath + "\n";
   return new LLC(LLCPath, gcc, Args, UseIntegratedAssembler);
 }