Skip to content

Commit

Permalink
[PhiValues] Adjust unit test to invalidate instructions before deleti…
Browse files Browse the repository at this point in the history
…ng them

This should fix a sanitizer buildbot failure.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335862 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
john-brawn-arm committed Jun 28, 2018
1 parent 6859f8a commit 97e3954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/Analysis/PhiValuesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ TEST(PhiValuesTest, DependentPhi) {

// Check that replacing an incoming phi then deleting it works
Phi3->setIncomingValue(1, Val2);
Phi2->eraseFromParent();
PV.invalidateValue(Phi2);
Phi2->eraseFromParent();
PV.invalidateValue(Phi3);
Vals = PV.getValuesForPhi(Phi1);
EXPECT_EQ(Vals.size(), 2u);
Expand Down

0 comments on commit 97e3954

Please sign in to comment.