Fix Cpp.void stringification to be consistent with other singletons (#6301)

I missed this in #6279, just fixing it. See `IntLiteralType` in
typed_insts.h (or similar) for comparison.
This commit is contained in:
Jon Ross-Perkins
2025-10-30 19:15:58 +00:00
committed by GitHub
parent d3762f9723
commit 356ea7fd30
3 changed files with 120 additions and 124 deletions
-4
View File
@@ -310,10 +310,6 @@ class Stringifier {
step_stack_->PushInstId(inst.inner_id);
}
auto StringifyInst(InstId /*inst_id*/, CppVoidType /*inst*/) -> void {
*out_ << "Cpp.void";
}
auto StringifyInst(InstId /*inst_id*/, CustomLayoutType inst) -> void {
auto layout = sem_ir_->custom_layouts().Get(inst.layout_id);
*out_ << "<size " << layout[CustomLayoutId::SizeIndex] << ", align "