diff options
| author | Tom Harley | 2022-05-11 11:59:16 +0100 |
|---|---|---|
| committer | Tom Harley | 2022-05-11 11:59:16 +0100 |
| commit | 8432156ed42e4f2bb636c23434008ac7be291d38 (patch) | |
| tree | 6cb9b0fae042aeb8418746d71612e8b34ea5b70e /examples/function.sin | |
| parent | Add String support (diff) | |
| download | sinter-8432156ed42e4f2bb636c23434008ac7be291d38.tar.gz sinter-8432156ed42e4f2bb636c23434008ac7be291d38.zip | |
Fix issue with nested case statements
Previously, nested case statements would cause phis to be given incorrect incoming blocks, causing issues when compiling the LLVMIR with clang.
To fix this, all case branches are given a second “exit” block that they jump to before jumping to the phi block. This way, we always know the block that was just left to get to the phi.
Diffstat (limited to 'examples/function.sin')
0 files changed, 0 insertions, 0 deletions
