summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-13 21:31:09 +0000
committerMike Stump <mrs@apple.com>2009-10-13 21:31:09 +0000
commit7373095ebf27093d88878fd1b13ee0f04750f1e1 (patch)
tree5c0b69e35c19023af6082c293a9ee278a76ea22e /clang/lib
parentf64a3dae047f500709ba90b86ee0f117b480fc9e (diff)
downloadbcm5719-llvm-7373095ebf27093d88878fd1b13ee0f04750f1e1.tar.gz
bcm5719-llvm-7373095ebf27093d88878fd1b13ee0f04750f1e1.zip
Ensure we sign extend.
llvm-svn: 84031
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 82ba93e6544..f3612a39d35 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -94,8 +94,8 @@ public:
llvm::Constant *m = wrap(BaseOffset);
m = wrap((0?700:0) + BaseOffset);
if (updateVBIndex)
- VBIndex[Base] = -(offsets.size()*LLVMPointerWidth/8)
- - 3*LLVMPointerWidth/8;
+ VBIndex[Base] = (ssize_t)(-(offsets.size()*LLVMPointerWidth/8)
+ - 3*LLVMPointerWidth/8);
offsets.push_back(m);
}
GenerateVBaseOffsets(offsets, Base, Offset, updateVBIndex);
OpenPOWER on IntegriCloud