[clang] Assertion `!isNull() && "Cannot retrieve a NULL type pointer"` with expansion statement (PR #218710)
Ambrose Leeb via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 28 09:03:21 PDT 2026
https://github.com/Sirraide commented:
Right, you’d have to apply lifetime extension again when you instantiate an expanded expansion statement... I think I’m going to investigate if there’s a better way to model lifetime extension, because having to collect temporaries via an expression evaluation context like this ends up being rather terrible, especially for something like this. Ideally, TreeTransform should ‘just know’ when to do that. I think we should probably put this on hold for now
https://github.com/llvm/llvm-project/pull/218710
More information about the cfe-commits
mailing list