mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Ignore switch stmt ret_layout
This commit is contained in:
parent
899a7d3308
commit
c5b2e160ca
1 changed files with 3 additions and 1 deletions
|
@ -663,7 +663,9 @@ trait Backend<'a> {
|
|||
cond_layout,
|
||||
branches,
|
||||
default_branch,
|
||||
ret_layout,
|
||||
// always use the proc's ret_layout, as early returns can make
|
||||
// this ret_layout inaccurate
|
||||
ret_layout: _,
|
||||
} => {
|
||||
self.load_literal_symbols(&[*cond_symbol]);
|
||||
self.build_switch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue