mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:51:07 +01: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:
@@ -18,7 +18,7 @@ namespace Carbon {
|
||||
struct Value;
|
||||
|
||||
using Address = unsigned int;
|
||||
using TypeEnv = Dictionary<std::string, Value*>;
|
||||
using TypeEnv = Dictionary<std::string, const Value*>;
|
||||
using Env = Dictionary<std::string, Address>;
|
||||
|
||||
struct TypeCheckContext {
|
||||
|
||||
Reference in New Issue
Block a user