change all expression and statement pointers to be const (#449)

* change all expression and statement pointers to be const

* const in paren tests
This commit is contained in:
Jeremy G. Siek authored and GitHub committed 2021-04-19 21:47:19 -04:00
1 parent 153d92b390
commit 34f1a03f7b
21 files changed
+258 -229

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ auto MakeBoolVal(bool b) -> const Value* {
return v;
}
auto MakeFunVal(std::string name, const Value* param, Statement* body)
auto MakeFunVal(std::string name, const Value* param, const Statement* body)
-> const Value* {
auto* v = new Value();
v->tag = ValKind::FunV;