fix: 修复三目运算符短路不可达判定问题

This commit is contained in:
爱特每羊队
2026-06-06 21:54:05 +08:00
parent 48f6737077
commit 3d452e01ac
+1 -3
View File
@@ -273,9 +273,7 @@ impl Compiler {
let skip_label = match log.operator {
LogicalOperator::And => Label::TernaryEnd(id),
LogicalOperator::Or => Label::TernaryElse(id),
LogicalOperator::Coalesce => {
unreachable!()
}
LogicalOperator::Coalesce => Label::TernaryEnd(id),
};
ctx.label_map.insert(skip_label, ctx.projected_pc);
}