[cfe-commits] r83609 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Mike Stump mrs at apple.com
Thu Oct 8 18:25:47 PDT 2009


Author: mrs
Date: Thu Oct  8 20:25:47 2009
New Revision: 83609

URL: http://llvm.org/viewvc/llvm-project?rev=83609&view=rev
Log:
Avoid warning.

Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=83609&r1=83608&r2=83609&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Thu Oct  8 20:25:47 2009
@@ -317,7 +317,7 @@
   
   // Since the function pointer is 1 plus the virtual table offset, we
   // subtract 1 by using a GEP.
-  VTable = Builder.CreateConstGEP1_64(VTable, -1);
+  VTable = Builder.CreateConstGEP1_64(VTable, (uint64_t)-1);
   
   llvm::Value *VirtualFn = Builder.CreateLoad(VTable, "virtualfn");
   





More information about the cfe-commits mailing list