summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/IslCodeGeneration.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-01-08 19:26:53 +0000
committerTobias Grosser <tobias@grosser.es>2015-01-08 19:26:53 +0000
commit55bc4c076706b6410a6bae84210ab32b95f272c9 (patch)
tree6e15ec7ae54c3d8df2ed495e323a3982d87f5064 /polly/lib/CodeGen/IslCodeGeneration.cpp
parent20c321caf83c3c10c992756eea7a04de582aa0db (diff)
downloadbcm5719-llvm-55bc4c076706b6410a6bae84210ab32b95f272c9.tar.gz
bcm5719-llvm-55bc4c076706b6410a6bae84210ab32b95f272c9.zip
Add support for pointer types in expressions
llvm-svn: 225464
Diffstat (limited to 'polly/lib/CodeGen/IslCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index 34043782e9b..9fc101db6e3 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -871,8 +871,7 @@ void IslNodeBuilder::addParameters(__isl_take isl_set *Context) {
Value *IslNodeBuilder::generateSCEV(const SCEV *Expr) {
Instruction *InsertLocation = --(Builder.GetInsertBlock()->end());
- return Rewriter->expandCodeFor(Expr, cast<IntegerType>(Expr->getType()),
- InsertLocation);
+ return Rewriter->expandCodeFor(Expr, Expr->getType(), InsertLocation);
}
namespace {
OpenPOWER on IntegriCloud