diff options
author | Andrew Trick <atrick@apple.com> | 2011-11-02 00:02:45 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-11-02 00:02:45 +0000 |
commit | 3129da8d1a15a263a9af10b618478344db9eeddf (patch) | |
tree | 4d961a1873447f39eba28ee9b9854fcb0a633323 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 064e48a3dce1fd29a35b4b1b01a8c4b67e29c74a (diff) |
Broaden an assert to handle enable-iv-rewrite=true following r143183.
Narrowest possible fix for PR11279.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index dce7f87e2c..b2ccb2270e 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -1588,7 +1588,7 @@ LinearFunctionTestReplace(Loop *L, assert(SE->isLoopInvariant(IVLimit, L) && "Computed iteration count is not loop invariant!"); - assert( !IVLimit->getType()->isPointerTy() && + assert( EnableIVRewrite || !IVLimit->getType()->isPointerTy() && "Should not expand pointer types" ); Value *ExitCnt = Rewriter.expandCodeFor(IVLimit, CmpTy, BI); |