[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 5 13:50:44 PDT 2025
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/150164 at github.com>
zygoloid wrote:
Oh. Hm, I see. So it looks like there's no way to turn on C++20 or above with OpenCL enabled, and the only way to get a null pointer that's not zero is with OpenCL enabled. (I'm going to grumble here that we've got our command line interface wrong, and the OpenCL flag should be independent of our `-std=` flag. But that's a separate issue.) I think that means that [this special case](https://github.com/llvm/llvm-project/blob/867602742cf392849b5f1cfc9038ad679333fd59/clang/lib/AST/ItaniumMangle.cpp#L6765) in the name mangler is untestable, which is sad, but so be it.
LGTM, sorry for the delay here :)
https://github.com/llvm/llvm-project/pull/150164
More information about the cfe-commits
mailing list