https://github.com/zmodem approved this pull request.

> > But isn't there a risk that the expression can leak outside the function, 
> > and we way try to use it in some constexpr context where it doesn't 
> > actually work?
> 
> Do you have an example in mind?

I can't think of one at the moment. Probably the constexpr machinery can deal 
with it similarly to how it deals with other constexpr pointers. If not, I 
suppose we'll find out in time :-)

lgtm

https://github.com/llvm/llvm-project/pull/171628
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to