Interop support for nullptr and nullptr_t. (#6353)

Add a `Core.CppCompat.NullptrT` type that C++'s `nullptr_t` maps into.
Map `nullptr` to an uninitialized constant of that type -- `nullptr`
doesn't actually have any defined bits within it, despite having the
same representation as `void*`.
This commit is contained in:
Richard Smith
2025-11-12 23:23:48 +00:00
committed by GitHub
parent 931039dcbc
commit 86b02ee8af
15 changed files with 521 additions and 124 deletions
+1
View File
@@ -166,6 +166,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
case TypeType::Kind:
case UnaryOperatorNot::Kind:
case UnboundElementType::Kind:
case UninitializedValue::Kind:
case ValueOfInitializer::Kind:
case ValueParam::Kind:
case VtableType::Kind: