diff options
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 073b9dd52b8..b3496c34399 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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);            }  | 

