Ensure we sign extend.

llvm-svn: 84031
This commit is contained in:
Mike Stump 2009-10-13 21:31:09 +00:00
parent f64a3dae04
commit 7373095ebf
1 changed files with 2 additions and 2 deletions

View File

@ -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);