summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/CodeGeneration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index 3a0e7f0ee11..955c13694e1 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -1088,8 +1088,9 @@ void ClastStmtCodeGen::codegen(const clast_assignment *A, ScopStmt *Stmt,
assert(!A->LHS && "Statement assignments do not have left hand side");
- RHS = ExpGen.codegen(A->RHS, getIntPtrTy());
PN = Stmt->getInductionVariableForDimension(Dim);
+ RHS = ExpGen.codegen(A->RHS, Builder.getInt64Ty());
+ RHS = Builder.CreateTruncOrBitCast(RHS, PN->getType());
if (VectorVMap)
(*VectorVMap)[VectorDim][PN] = RHS;
OpenPOWER on IntegriCloud