diff options
author | Florian Hahn <florian.hahn@arm.com> | 2018-06-18 13:51:28 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2018-06-18 13:51:28 +0000 |
commit | 3bcff3662c74980832c7ca8fe3436cfa32899e5a (patch) | |
tree | be2170f6d3d0d0bba93cf6037e6e6a9147d70e53 | |
parent | 118099a62cec763e912cbfbe61d52687364fd0b8 (diff) | |
download | bcm5719-llvm-3bcff3662c74980832c7ca8fe3436cfa32899e5a.tar.gz bcm5719-llvm-3bcff3662c74980832c7ca8fe3436cfa32899e5a.zip |
[VPlan] Fix sanitizer problem with insertBefore.
llvm-svn: 334943
-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, |