add pointers, variable arguments and void functions

This commit is contained in:
r4 committed 2021-12-28 13:39:12 +01:00
1 parent a706ea6a3f
commit 22f71d7e56
9 files changed
+140 -40

No files matched your search

+3
View File
@@ -120,6 +120,9 @@ Value eval_unary(IRInstr instr, const Value *v) {
set_err("Unsupported type for operation '%s': %s", irinstr_str[instr], type_str[v->type.kind]);
return (Value){0};
}
case IRAddrOf:
set_err("Unable to take the address of a literal");
return (Value){0};
default:
ASSERT_UNREACHED();
}