chore: use unreachable! for unreachable cases, not silent fallback (#9790)
This commit is contained in:
parent
eaec888dc3
commit
a2f24fac65
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ partial def visitFnBody (b : FnBody) (ctx : Context) : FnBody × LiveVarSet :=
|
|||
let bLiveVars := collectLiveVars b ctx.jpLiveVarMap
|
||||
⟨b, bLiveVars⟩
|
||||
| .unreachable => ⟨.unreachable, {}⟩
|
||||
| _ => ⟨b, {}⟩ -- unreachable if well-formed
|
||||
| .set .. | .setTag .. | .inc .. | .dec .. | .del .. => unreachable!
|
||||
|
||||
partial def visitDecl (env : Environment) (decls : Array Decl) (d : Decl) : Decl :=
|
||||
match d with
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue