nikic wrote:

Yes, passing a null pointer to that would be UB. But you don't know whether 
null will be passed or not, so it can be well-defined. (Esp. if you consider an 
argument-independent assert. Like an assert that all switch cases were covered, 
which is actually unreachable.)

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

Reply via email to