forked from OSchip/llvm-project
[Attributor][FIX] Update unit test after API change
This commit is contained in:
parent
71ee3570f4
commit
24c993dab6
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue