[clang] [LifetimeSafety] Detect expiry of loans to trivially destructed types (PR #168855)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 22:35:56 PST 2025


================
@@ -696,10 +732,10 @@ void lifetimebound_return_reference() {
   {
----------------
usx95 wrote:

Fix the FIXME. The warning should be at the previous line highlighting the loan to `temp_v`​.

This should be fixed with the upcoming multi-origin support.

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


More information about the cfe-commits mailing list