mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 17:51:05 +01:00
Better diagnostic message in CHECK (#5504)
This commit is contained in:
@@ -303,7 +303,8 @@ auto MatchContext::DoEmitPatternMatch(Context& context,
|
||||
break;
|
||||
}
|
||||
case MatchKind::Callee: {
|
||||
CARBON_CHECK(!param_pattern.index.has_value());
|
||||
CARBON_CHECK(!param_pattern.index.has_value(),
|
||||
"ValueParamPattern index set before callee pattern match");
|
||||
param_pattern.index = NextRuntimeIndex();
|
||||
ReplaceInstBeforeConstantUse(context, entry.pattern_id, param_pattern);
|
||||
auto param_id = AddInst<SemIR::ValueParam>(
|
||||
|
||||
Reference in New Issue
Block a user