[llvm-branch-commits] [clang] [LifetimeSafety] Issue reference-to-pointer param placeholders at the pointee origin (PR #239754)

Gábor Horváth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 9 04:53:51 PST 2026


Xazax-hun wrote:

I do believe we want to get placeholder loans for more levels of indirection eventually, but I also believe `lifetimebound` as defined today is not the correct annotation for this code:

```
T *fn(T*& slot, ...) {
  //...
  return slot;
}
```

LB would ascertain to the reference, which is not correct. We need to generalize annotations to make this example supported. 

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


More information about the llvm-branch-commits mailing list