[llvm-commits] [llvm-gcc-4.2] r79102 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Bob Wilson bob.wilson at apple.com
Sat Aug 15 08:11:15 PDT 2009


Author: bwilson
Date: Sat Aug 15 10:11:14 2009
New Revision: 79102

URL: http://llvm.org/viewvc/llvm-project?rev=79102&view=rev
Log:
Fix a build warning.
Patch by Sandeep Patel.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=79102&r1=79101&r2=79102&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sat Aug 15 10:11:14 2009
@@ -438,7 +438,7 @@
   if (DECL_LLVM_SET_P(FnDecl) &&
       cast<PointerType>(DECL_LLVM(FnDecl)->getType())->getElementType() == FTy){
     Fn = cast<Function>(DECL_LLVM(FnDecl));
-    assert(Fn->getCallingConv() == CallingConv &&
+    assert(Fn->getCallingConv() == static_cast<unsigned>(CallingConv) &&
            "Calling convention disagreement between prototype and impl!");
     // The visibility can be changed from the last time we've seen this
     // function. Set to current.
@@ -450,7 +450,7 @@
       assert(FnEntry->isDeclaration() &&
              "Multiple fns with same name and neither are external!");
       FnEntry->setName("");  // Clear name to avoid conflicts.
-      assert(FnEntry->getCallingConv() == CallingConv &&
+      assert(FnEntry->getCallingConv() == static_cast<unsigned>(CallingConv) &&
              "Calling convention disagreement between prototype and impl!");
     }
     





More information about the llvm-commits mailing list