1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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 6556ee94c9
commit 5cb586acf5

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