mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 23:58:11 +00:00
Remove `ReusingLoc` and add enforcement that even for imported locations, the kind of the parse node for an instruction matches the kind specified in the instruction definition. Change the node kind for a few instructions to `NodeId`: - A couple of instructions had a typed node but could be created implicitly with any node as part of a builtin implicit conversion. This happened for `AddrOf`, `ArrayIndex`, and `Deref`. - A bunch of instructions had `InvalidNodeId` as their associated parse node kind but were actually always created with a location. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
Toolchain
A design is currently maintained in Google Drive. It'll be migrated to markdown once we are confident in its stability.