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

This commit is contained in:
2026-06-06 21:54:05 +08:00
parent 64369270f5
commit 4e8f2f09f0
+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);
}