[llvm-commits] [llvm] r91715 - /llvm/trunk/lib/VMCore/Metadata.cpp

Eli Friedman eli.friedman at gmail.com
Fri Dec 18 13:07:18 PST 2009


Author: efriedma
Date: Fri Dec 18 15:07:18 2009
New Revision: 91715

URL: http://llvm.org/viewvc/llvm-project?rev=91715&view=rev
Log:
Fix gcc warning.


Modified:
    llvm/trunk/lib/VMCore/Metadata.cpp

Modified: llvm/trunk/lib/VMCore/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Metadata.cpp?rev=91715&r1=91714&r2=91715&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Metadata.cpp (original)
+++ llvm/trunk/lib/VMCore/Metadata.cpp Fri Dec 18 15:07:18 2009
@@ -173,12 +173,13 @@
         // different function.
         return false;
 
-    if (LocalFunctionTemp)
+    if (LocalFunctionTemp) {
       if (!LocalFunction)
         LocalFunction = LocalFunctionTemp;
       else if (LocalFunction != LocalFunctionTemp)
         // This MDNode contains operands that are local to different functions.
         return false;
+    }
   }
     
   return true;





More information about the llvm-commits mailing list