diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-28 05:27:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-28 05:27:36 +0000 |
commit | 7f3c4d49df119f5f01e462fc50bed4eb1704d7d6 (patch) | |
tree | 6b96731606a9c59c14e11e5fdfe50a53c079e299 /lib/Transforms | |
parent | 827a1f45c575f98f0da7e1ef639a16aaca15a145 (diff) | |
download | llvm-7f3c4d49df119f5f01e462fc50bed4eb1704d7d6.tar.gz llvm-7f3c4d49df119f5f01e462fc50bed4eb1704d7d6.tar.bz2 llvm-7f3c4d49df119f5f01e462fc50bed4eb1704d7d6.tar.xz |
fix a bug triggered by 403.gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 073b9dd52b..b3496c3439 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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); } |