diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-31 12:37:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-31 12:37:20 -0700 |
| commit | c7b09be8de946d18c2f1afb532beb1b2426fab18 (patch) | |
| tree | 5f92b32f5acb493587c5d4e22176b60c827af696 /src/codegen.zig | |
| parent | 549af582e722c4798076acef7948a1f0d2896289 (diff) | |
| download | zig-c7b09be8de946d18c2f1afb532beb1b2426fab18.tar.gz zig-c7b09be8de946d18c2f1afb532beb1b2426fab18.zip | |
AstGen: improve switch expressions
* use the proper result location strategy even when there are noreturn
prongs in the switch expression
* when using break_operand strategy, actually omit the
store_to_block_ptr instructions rather than eliding them.
* for both strategies, properly handle noreturn prongs.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
