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

Sandeep Patel deeppatel1987 at gmail.com
Fri Sep 4 00:41:44 PDT 2009


Author: sandeep
Date: Fri Sep  4 02:41:44 2009
New Revision: 80992

URL: http://llvm.org/viewvc/llvm-project?rev=80992&view=rev
Log:
Fix warnings caused by r80773. Committed as obvious with the correct file this time.

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=80992&r1=80991&r2=80992&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Sep  4 02:41:44 2009
@@ -439,7 +439,7 @@
   if (DECL_LLVM_SET_P(FnDecl) &&
       cast<PointerType>(DECL_LLVM(FnDecl)->getType())->getElementType() == FTy){
     Fn = cast<Function>(DECL_LLVM(FnDecl));
-    assert(Fn->getCallingConv() == static_cast<unsigned>(CallingConv) &&
+    assert(Fn->getCallingConv() == 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.
@@ -451,7 +451,7 @@
       assert(FnEntry->isDeclaration() &&
              "Multiple fns with same name and neither are external!");
       FnEntry->setName("");  // Clear name to avoid conflicts.
-      assert(FnEntry->getCallingConv() == static_cast<unsigned>(CallingConv) &&
+      assert(FnEntry->getCallingConv() == CallingConv &&
              "Calling convention disagreement between prototype and impl!");
     }
 





More information about the llvm-commits mailing list