mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 17:30:28 +00:00
const-ify Value*s in preparation for value semantic transformation (#409)
Making Values const allows us to separate the actual mutations (search for "*&" in this change) from places where the Value is effectively passed by-value.
This commit is contained in:
1 parent
1da97fc9cf
commit
dd4e37e761
9 files changed
+149
-139
No files matched your search
@@ -83,7 +83,7 @@ auto MakeStmtAct(Statement* s) -> Action* {
|
||||
return act;
|
||||
}
|
||||
|
||||
auto MakeValAct(Value* v) -> Action* {
|
||||
auto MakeValAct(const Value* v) -> Action* {
|
||||
auto* act = new Action();
|
||||
act->tag = ActionKind::ValAction;
|
||||
act->u.val = v;
|
||||
|
||||
Reference in new issue
Block a user