mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
add unreachable instruction to the mono IR
This commit is contained in:
parent
ccd302cbe9
commit
6bc0cf33a5
6 changed files with 22 additions and 2 deletions
|
@ -1366,6 +1366,13 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
|
|||
value
|
||||
}
|
||||
|
||||
Unreachable => {
|
||||
// used in exception handling
|
||||
env.builder.build_unreachable();
|
||||
|
||||
env.context.i64_type().const_zero().into()
|
||||
}
|
||||
|
||||
Switch {
|
||||
branches,
|
||||
default_branch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue