From: John Brawn Date: Thu, 28 Jun 2018 15:17:07 +0000 (+0000) Subject: [PhiValues] Adjust unit test to invalidate instructions before deleting them X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa8a88af05fef8a447d2516d9d01d27dfae4a567;p=platform%2Fupstream%2Fllvm.git [PhiValues] Adjust unit test to invalidate instructions before deleting them This should fix a sanitizer buildbot failure. llvm-svn: 335862 --- diff --git a/llvm/unittests/Analysis/PhiValuesTest.cpp b/llvm/unittests/Analysis/PhiValuesTest.cpp index 9a1b5d7..303b0df 100644 --- a/llvm/unittests/Analysis/PhiValuesTest.cpp +++ b/llvm/unittests/Analysis/PhiValuesTest.cpp @@ -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);