Remove Void (#540)

Implements resolution of #443.
This commit is contained in:
Geoff Romer authored and GitHub committed 2021-06-01 12:48:04 -07:00
1 parent e619d3d632
commit c903eb3133
6 files changed
+69 -5

No files matched your search

+1 -1
View File
@@ -272,7 +272,7 @@ auto Value::MakeStructTypeVal(std::string name, VarValues* fields,
return v;
}
auto Value::MakeVoidTypeVal() -> const Value* {
auto Value::MakeUnitTypeVal() -> const Value* {
auto* v = new Value();
v->tag = ValKind::TupleV;
v->u.tuple.elements = new std::vector<TupleElement>();