[llvm-commits] [gcc-plugin] r80995 - /gcc-plugin/trunk/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Fri Sep 4 04:27:12 PDT 2009


Author: baldrick
Date: Fri Sep  4 06:27:05 2009
New Revision: 80995

URL: http://llvm.org/viewvc/llvm-project?rev=80995&view=rev
Log:
Build fix: sync with llvm-gcc revision 80992.

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

Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=80995&r1=80994&r2=80995&view=diff

==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Sep  4 06:27:05 2009
@@ -451,7 +451,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.
@@ -463,7 +463,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