fix a bug triggered by 403.gcc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-28 05:27:36 +00:00
parent 827a1f45c5
commit 7f3c4d49df

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