[cfe-commits] r84031 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Mike Stump
mrs at apple.com
Tue Oct 13 14:31:09 PDT 2009
Author: mrs
Date: Tue Oct 13 16:31:09 2009
New Revision: 84031
URL: http://llvm.org/viewvc/llvm-project?rev=84031&view=rev
Log:
Ensure we sign extend.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=84031&r1=84030&r2=84031&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Tue Oct 13 16:31:09 2009
@@ -94,8 +94,8 @@
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);
More information about the cfe-commits
mailing list