E00N777 wrote:
> I happened to have implemented lifetimes in CIR for an experiment
> independently and compared your PR to my code. It's mostly okay (with nits
> that will follow) but there's one regression:
>
> ```c++
> struct E { E(const E &, const int & = 42); };
> void f() { try { throw 1; } catch (E e) {} }
> ```
>
> You need to disable lifetime emission in `getOrCreateCopyThunk` until we
> implement multi-block catch-copy thunks.
Updated, and added a test case.
https://github.com/llvm/llvm-project/pull/236102
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits