Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 6e8480a

Browse files
committed
[VPlan] Fix sanitizer problem with insertBefore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334943 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b0c8738 commit 6e8480a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ void VPRegionBlock::execute(VPTransformState *State) {
221221
}
222222

223223
void VPRecipeBase::insertBefore(VPRecipeBase *InsertPos) {
224-
InsertPos->getParent()->getRecipeList().insert(InsertPos->getIterator(),
225-
this);
224+
Parent = InsertPos->getParent();
225+
Parent->getRecipeList().insert(InsertPos->getIterator(), this);
226226
}
227227

228228
void VPInstruction::generateInstruction(VPTransformState &State,

0 commit comments

Comments
 (0)