Restore the name of GetCompileTimeBindValue. (#6733)

It had been renamed to GetCompileTimeAcquireValue in #6281 due to an
overzealous find/replace.
This commit is contained in:
Geoff Romer
2026-02-13 00:54:23 +00:00
committed by GitHub
parent d39fdfcfad
commit 7f29436d4e
+3 -3
View File
@@ -103,7 +103,7 @@ class EvalContext {
// Gets the value of the specified compile-time binding in this context.
// Returns `None` if the value is not fixed in this context.
auto GetCompileTimeAcquireValue(SemIR::CompileTimeBindIndex bind_index)
auto GetCompileTimeBindValue(SemIR::CompileTimeBindIndex bind_index)
-> SemIR::ConstantId {
if (!bind_index.has_value() || !specific_id_.has_value()) {
return SemIR::ConstantId::None;
@@ -2337,7 +2337,7 @@ auto TryEvalTypedInst<SemIR::SymbolicBinding>(EvalContext& eval_context,
const auto& bind_name = eval_context.entity_names().Get(bind.entity_name_id);
if (bind_name.bind_index().has_value()) {
if (auto value =
eval_context.GetCompileTimeAcquireValue(bind_name.bind_index());
eval_context.GetCompileTimeBindValue(bind_name.bind_index());
value.has_value()) {
return value;
}
@@ -2368,7 +2368,7 @@ auto TryEvalTypedInst<SemIR::SymbolicBindingType>(EvalContext& eval_context,
inst.As<SemIR::SymbolicBindingType>().entity_name_id);
if (bind_name.bind_index().has_value()) {
if (auto value =
eval_context.GetCompileTimeAcquireValue(bind_name.bind_index());
eval_context.GetCompileTimeBindValue(bind_name.bind_index());
value.has_value()) {
auto value_inst_id = eval_context.constant_values().GetInstId(value);