diff options
author | Mike Stump <mrs@apple.com> | 2009-10-09 01:25:47 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-09 01:25:47 +0000 |
commit | 25bc275c3f2188b2a08cc051f7af6611c8726750 (patch) | |
tree | bf907870aa0bc6ce475a10473db4693942d75c14 | |
parent | 16a5eac559730f4a7ec5ffdab3f236f51df85b63 (diff) |
Avoid warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83609 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 506f305bf3..cd58b832da 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -317,7 +317,7 @@ CodeGenFunction::EmitCXXMemberPointerCallExpr(const CXXMemberCallExpr *E) { // 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"); |