diff options
Diffstat (limited to 'polly/lib/Support/SCEVValidator.cpp')
| -rw-r--r-- | polly/lib/Support/SCEVValidator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index 40f1d91388b..67c9e0eb1ee 100644 --- a/polly/lib/Support/SCEVValidator.cpp +++ b/polly/lib/Support/SCEVValidator.cpp @@ -336,8 +336,8 @@ public: // A[i] = 1; // // See test/CodeGen/20120316-InvalidCast.ll - if (!Expr->getType()->isIntegerTy()) { - DEBUG(dbgs() << "INVALID: UnknownExpr is not an integer type"); + if (!(Expr->getType()->isIntegerTy() || Expr->getType()->isPointerTy())) { + DEBUG(dbgs() << "INVALID: UnknownExpr is not an integer or pointer type"); return ValidatorResult(SCEVType::INVALID); } |

