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:
parent
6556ee94c9
commit
5cb586acf5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user