[Attributor][FIX] Repair broken unit test
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 1 Feb 2022 08:13:01 +0000 (02:13 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 1 Feb 2022 08:13:17 +0000 (02:13 -0600)
llvm/unittests/Transforms/IPO/AttributorTest.cpp

index ea4f1ba..d7c456c 100644 (file)
@@ -202,7 +202,9 @@ TEST_F(AttributorTestBase, AAReachabilityTest) {
 
   // The second instruction of F9 can't reach the first call.
   ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3, false));
-  ASSERT_FALSE(F9AA.instructionCanReach(A, F9SecondInst, F3, true));
+  // 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));
 
   // The first instruction of F9 can reach the first call.
   ASSERT_TRUE(F9AA.instructionCanReach(A, F9FirstInst, F3));