[clang] [LifetimeSafety] Optimize loan propagation by separating persistent and block-local origins (PR #165789)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 6 19:08:50 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/39567

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang-Unit :: ./AllClangUnitTests/7/49' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/unittests/./AllClangUnitTests-Clang-Unit-3884835-7-49.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=49 GTEST_SHARD_INDEX=7 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/unittests/./AllClangUnitTests
--

Script:
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/unittests/./AllClangUnitTests --gtest_filter=LifetimeAnalysisTest.PointersInACycle
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/lib/Testing/TestAST.cpp:49: Failure
Failed
input.cc:20:19: error: unknown type name 'B'
   20 |         p3 = temp;B
      |                   ^


/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/lib/Testing/TestAST.cpp:49: Failure
Failed
input.cc:21:9: error: expected unqualified-id
   21 |         POINT(in_loop);
      |         ^
input.cc:2:32: note: expanded from macro 'POINT'
    2 |       #define POINT(name) void("__lifetime_test_point_" #name)
      |                                ^


/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/lib/Testing/TestAST.cpp:49: Failure
Failed
input.cc:21:9: error: expected ')'
   21 |         POINT(in_loop);
      |         ^
input.cc:2:32: note: expanded from macro 'POINT'
    2 |       #define POINT(name) void("__lifetime_test_point_" #name)
      |                                ^


/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:76: Failure
Failed
Annotation 'in_loop' not found.

/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:76: Failure
Failed
Annotation 'in_loop' not found.

/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/unittests/Analysis/LifetimeSafetyTest.cpp:548: Failure
Value of: Origin("temp")
Expected: has loans to impl (LoanVars: { "v1", "v2", "v3" }, Annotation: "in_loop")
  Actual: 24-byte object <DA-78 01-81 58-5A 00-00 04-00 00-00 00-00 00-00 A0-D6 1C-9B 58-5A 00-00>, could not get a valid loan set at point 'in_loop'

...

```

</details>

https://github.com/llvm/llvm-project/pull/165789


More information about the cfe-commits mailing list