fix a bug triggered by 403.gcc

llvm-svn: 36527
This commit is contained in:
Chris Lattner 2007-04-28 05:27:36 +00:00
parent 73b3b80815
commit 089e35cc57
1 changed files with 1 additions and 2 deletions

View File

@ -6408,8 +6408,7 @@ Instruction *InstCombiner::commonPointerCastTransforms(CastInst &CI) {
// Handle silly modulus not returning values values [0..TySize).
if (Offset < 0) {
assert(FirstIdx == 0);
FirstIdx = -1;
--FirstIdx;
Offset += TySize;
assert(Offset >= 0);
}