[clang] [LifetimeSafety] Track origins for lifetimebound calls returning record types (PR #187917)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 00:31:18 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87089 tests passed
* 1343 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Sema/warn-lifetime-analysis-nocfg.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wdangling -Wdangling-field -Wreturn-stack-address -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wdangling -Wdangling-field -Wreturn-stack-address -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=cfg,cfg-field /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify=cfg,cfg-field /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
# .---command stderr------------
# | error: diagnostics with 'warning' severity seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 584: address of stack memory is returned later
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 583: address of stack memory is returned later
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 597: object whose reference is captured does not live long enough
# | error: diagnostics with 'note' severity seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 584: returned here
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 583: returned here
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 597: destroyed here
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp Line 598: later used here
# | 7 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/187917
More information about the cfe-commits
mailing list