summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGen/LoopGeneratorsGOMP.cpp')
-rw-r--r--polly/lib/CodeGen/LoopGeneratorsGOMP.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp b/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
index 1013f12e2a79..254c5e973f66 100644
--- a/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
+++ b/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
@@ -128,8 +128,7 @@ ParallelLoopGeneratorGOMP::createSubFn(Value *Stride, AllocaInst *StructData,
Builder.SetInsertPoint(HeaderBB);
Value *LBPtr = Builder.CreateAlloca(LongType, nullptr, "polly.par.LBPtr");
Value *UBPtr = Builder.CreateAlloca(LongType, nullptr, "polly.par.UBPtr");
- Value *UserContext = Builder.CreateBitCast(
- &*SubFn->arg_begin(), StructData->getType(), "polly.par.userContext");
+ Value *UserContext = &*SubFn->arg_begin();
extractValuesFromStruct(Data, StructData->getAllocatedType(), UserContext,
Map);