Skip to content

Commit 783544b

Browse files
committed
[Attributor][FIX] Repair broken unit test
1 parent d97749f commit 783544b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/unittests/Transforms/IPO/AttributorTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ TEST_F(AttributorTestBase, AAReachabilityTest) {
202202

203203
// The second instruction of F9 can't reach the first call.
204204
ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3, false));
205-
ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3, true));
205+
// TODO: Without lifetime limiting callback this query does actually not make
206+
// much sense. "Anything" is reachable from the caller of func10.
207+
ASSERT_TRUE(F9AA.instructionCanReach(A, F9SecondInst, F3, true));
206208

207209
// The first instruction of F9 can reach the first call.
208210
ASSERT_TRUE(F9AA.instructionCanReach(A, F9FirstInst, F3));

0 commit comments

Comments
 (0)