Commit 4d75033b authored by David Renshaw's avatar David Renshaw

Comment explaining declaration order.

parent 3a538476
......@@ -324,7 +324,8 @@ private:
// Map of parser modules to compiler modules.
Workspace workspace;
// The temporary workspace.
// The temporary workspace. This field must be declared after `modules` because objects
// allocated in the workspace may hold references to the compiled modules in `modules`.
std::unordered_map<uint64_t, Node*> nodesById;
// Map of nodes by ID.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment