mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:40:29 +00:00
Better diagnostic message in CHECK (#5504)
This commit is contained in:
1 parent
c39efe321e
commit
515eb6b45b
1 file changed
+2
-1
@@ -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