[VPlan] Fix sanitizer problem with insertBefore.

llvm-svn: 334943
This commit is contained in:
Florian Hahn 2018-06-18 13:51:28 +00:00
parent 118099a62c
commit 3bcff3662c
1 changed files with 2 additions and 2 deletions

View File

@ -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,