Fix llvm-diff anon-func.ll test
authorHans Wennborg <hans@hanshq.net>
Mon, 24 Sep 2018 08:34:17 +0000 (08:34 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 24 Sep 2018 08:34:17 +0000 (08:34 +0000)
llvm-svn: 342864

llvm/tools/llvm-diff/DifferenceEngine.cpp

index 5be533d..b2673c1 100644 (file)
@@ -720,10 +720,10 @@ void DifferenceEngine::diff(Module *L, Module *R) {
 
   if (LeftAnonCount != 0 || RightAnonCount != 0) {
     SmallString<32> Tmp;
-    Twine Message = "not comparing " + Twine(LeftAnonCount) +
-      " anonymous functions in the left module and " + Twine(RightAnonCount) +
-      " in the right module";
-    logf(Message.toStringRef(Tmp));
+    logf(("not comparing " + Twine(LeftAnonCount) +
+          " anonymous functions in the left module and " +
+          Twine(RightAnonCount) + " in the right module")
+             .toStringRef(Tmp));
   }
 
   for (SmallVectorImpl<std::pair<Function*,Function*> >::iterator