mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Clarify and partially enforce inst-order precondition on splicing (#6722)
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
co-authored by
Chandler Carruth
parent
64e3fab43a
commit
f289592dfa
@@ -160,6 +160,9 @@ auto HandleParseNode(Context& context, Parse::ForHeaderId node_id) -> bool {
|
||||
// Create the cursor variable.
|
||||
// TODO: Produce a custom diagnostic if the range operand can't be used as a
|
||||
// range.
|
||||
// TODO: We need to allocate the `VarStorage` before building the operator.
|
||||
// The current order risks violating the preconditions on `Initialize` and
|
||||
// risks violating the topological ordering of insts.
|
||||
auto cursor_id =
|
||||
BuildUnaryOperator(context, node_id,
|
||||
{.interface_name = CoreIdentifier::Iterate,
|
||||
|
||||
Reference in New Issue
Block a user