[clang] [CodeGen] Fix handling of nullptr in initializers (PR #137364)
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 25 11:26:22 PDT 2025
================
@@ -121,6 +121,7 @@ CAST_OPERATION(FunctionToPointerDecay)
/// CK_NullToPointer - Null pointer constant to pointer, ObjC
/// pointer, or block pointer.
/// (void*) 0
+/// (void*) nullptr
----------------
alexfh wrote:
Sorry, I misunderstood your previous comment. Now, is `(std::nullptr_t)x` what you'd like to see in that comment verbatim?
https://github.com/llvm/llvm-project/pull/137364
More information about the cfe-commits
mailing list