mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user