diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-14 22:21:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-14 22:21:40 +0000 |
commit | 868c2d3c05d9a74608448056d049f1bddd9e6219 (patch) | |
tree | 3c4b35e0b0b201f1770df58e0cf08ff3ca34a281 /lib/Transforms/TransformInternals.cpp | |
parent | 4ed5534a8fc1db0414c91b055e4aba414d5a10ff (diff) |
Bug fix for test/Regression/Other/2002-02-14-LevelRaiseBadAssert.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.cpp')
-rw-r--r-- | lib/Transforms/TransformInternals.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/TransformInternals.cpp b/lib/Transforms/TransformInternals.cpp index 6b42d0c766..f773a1c473 100644 --- a/lib/Transforms/TransformInternals.cpp +++ b/lib/Transforms/TransformInternals.cpp @@ -155,6 +155,7 @@ const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal, int Val = getConstantValue(Expr.Scale); if (Val < 0) return false; // Don't mess with negative scales Scale = (unsigned)Val; + if (Scale == 1) Scale = 0; // No interesting scale if *1 } // Loop over the Scale and Offset values, filling in the Indices vector for |