diff options
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 7d07ae09902..ea9ad199907 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp @@ -221,8 +221,8 @@ void VPRegionBlock::execute(VPTransformState *State) { } void VPRecipeBase::insertBefore(VPRecipeBase *InsertPos) { - InsertPos->getParent()->getRecipeList().insert(InsertPos->getIterator(), - this); + Parent = InsertPos->getParent(); + Parent->getRecipeList().insert(InsertPos->getIterator(), this); } void VPInstruction::generateInstruction(VPTransformState &State, |