[Attributor][FIX] Update unit test after API change

This commit is contained in:
Johannes Doerfert 2022-07-22 01:04:53 -05:00
parent 71ee3570f4
commit 24c993dab6
1 changed files with 1 additions and 5 deletions

View File

@ -187,7 +187,6 @@ TEST_F(AttributorTestBase, AAReachabilityTest) {
F7AA.canReach(A, F7FirstCB, F3);
F7AA.canReach(A, F7FirstCB, F4);
F9AA.instructionCanReach(A, F9FirstInst, F3);
F9AA.instructionCanReach(A, F9SecondInst, F3, false);
F9AA.instructionCanReach(A, F9FirstInst, F4);
A.run();
@ -203,10 +202,7 @@ TEST_F(AttributorTestBase, AAReachabilityTest) {
ASSERT_TRUE(F6AA.canReach(A, F4));
// The second instruction of F9 can't reach the first call.
ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3, false));
// TODO: Without lifetime limiting callback this query does actually not make
// much sense. "Anything" is reachable from the caller of func10.
ASSERT_TRUE(F9AA.instructionCanReach(A, F9SecondInst, F3, true));
ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3));
// The first instruction of F9 can reach the first call.
ASSERT_TRUE(F9AA.instructionCanReach(A, F9FirstInst, F3));