mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 23:30:28 +00:00
Add MaybeUnformed(T) type. (#5989)
This type has the same object representation as `T`, but always uses a pointer type as its value representation. No other semantics are provided for it yet.
This commit is contained in:
1 parent
4483d1e5a7
commit
0e6dd7e701
16 files changed
+318
-21
No files matched your search
@@ -521,6 +521,10 @@ class Stringifier {
|
||||
sem_ir_->specific_interfaces().Get(inst.query_specific_interface_id));
|
||||
}
|
||||
|
||||
auto StringifyInst(InstId /*inst_id*/, MaybeUnformedType inst) -> void {
|
||||
step_stack_->Push("<builtin MaybeUnformed(", inst.inner_id, ")>");
|
||||
}
|
||||
|
||||
auto StringifyInst(InstId /*inst_id*/, NameRef inst) -> void {
|
||||
*out_ << sem_ir_->names().GetFormatted(inst.name_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user