summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorTom Harley2022-05-11 11:59:16 +0100
committerTom Harley2022-05-11 11:59:16 +0100
commit8432156ed42e4f2bb636c23434008ac7be291d38 (patch)
tree6cb9b0fae042aeb8418746d71612e8b34ea5b70e /debug.h
parentAdd String support (diff)
downloadsinter-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 'debug.h')
0 files changed, 0 insertions, 0 deletions