summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-11-02 00:02:45 +0000
committerAndrew Trick <atrick@apple.com>2011-11-02 00:02:45 +0000
commit3129da8d1a15a263a9af10b618478344db9eeddf (patch)
tree4d961a1873447f39eba28ee9b9854fcb0a633323 /lib
parent064e48a3dce1fd29a35b4b1b01a8c4b67e29c74a (diff)
downloadllvm-3129da8d1a15a263a9af10b618478344db9eeddf.tar.gz
llvm-3129da8d1a15a263a9af10b618478344db9eeddf.tar.bz2
llvm-3129da8d1a15a263a9af10b618478344db9eeddf.tar.xz
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')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
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);