diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-01-08 19:26:53 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-01-08 19:26:53 +0000 |
| commit | 55bc4c076706b6410a6bae84210ab32b95f272c9 (patch) | |
| tree | 6e15ec7ae54c3d8df2ed495e323a3982d87f5064 /polly/lib/Support/SCEVValidator.cpp | |
| parent | 20c321caf83c3c10c992756eea7a04de582aa0db (diff) | |
| download | bcm5719-llvm-55bc4c076706b6410a6bae84210ab32b95f272c9.tar.gz bcm5719-llvm-55bc4c076706b6410a6bae84210ab32b95f272c9.zip | |
Add support for pointer types in expressions
llvm-svn: 225464
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); } |

