[clang] [LifetimeSafety] Add UseFacts for function arguments and assignment RHS (PR #180446)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 16 08:16:11 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52552 tests passed
* 959 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Sema/warn-lifetime-safety-invalidations.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-invalidations.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -fsyntax-only -Wlifetime-safety -Wno-dangling -verify 'C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-invalidations.cpp'
# .---command stderr------------
# | error: 'expected-warning' diagnostics expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-invalidations.cpp Line 291: object whose reference is captured is later invalidated
# | error: 'expected-note' diagnostics expected but not seen:
# | File C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-invalidations.cpp Line 292: invalidated here
# | File C:\_work\llvm-project\llvm-project\clang\test\Sema\warn-lifetime-safety-invalidations.cpp Line 293: later used here
# | 3 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/180446
More information about the cfe-commits
mailing list