mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Disambiguate "value binding" (#6231)
This proposal removes the definition of the term "value binding" as a primitive category conversion from reference to value, replacing it with the term "value acquisition". The other meaning of "value binding", a binding declared by a value binding pattern, is unchanged.
This commit is contained in:
@@ -14,10 +14,10 @@ auto HandleInst(FunctionContext& context, SemIR::InstId inst_id,
|
||||
switch (context.GetValueRepr(inst_type).repr.kind) {
|
||||
case SemIR::ValueRepr::Unknown:
|
||||
CARBON_FATAL(
|
||||
"Value binding for type with incomplete value representation");
|
||||
"Value acquisition for type with incomplete value representation");
|
||||
case SemIR::ValueRepr::Dependent:
|
||||
CARBON_FATAL(
|
||||
"Value binding for type with dependent value representation");
|
||||
"Value acquisition for type with dependent value representation");
|
||||
case SemIR::ValueRepr::None:
|
||||
// Nothing should use this value, but StubRef needs a value to
|
||||
// propagate.
|
||||
|
||||
Reference in New Issue
Block a user