[llvm] [Inline] Allow inlining with null_pointer_is_valid mismatch (PR #190510)
Miguel Ojeda via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 04:26:16 PDT 2026
ojeda wrote:
Thanks Gary & Ralf for the quick replies! Gary and I (and others) discussed this a few times in the past (e.g. Gary mentioned the niches point years ago).
It could still be interesting to try to match C at least for certain operations on raw pointers, e.g. for `.is_null()`. I may have asked this to Gary back then, not sure.
I can get close to C with an `inline(never)` indirection (`black_box` is too heavy): https://godbolt.org/z/E4MdnT7KW.
https://github.com/llvm/llvm-project/pull/190510
More information about the llvm-commits
mailing list