Files
zig/test/behavior
Andrew Kelley f0deef1d79 Sema: fix analyzeBlockBody logic
Previously, when a coercion needed to be inserted into a break
instruction, the `br` AIR instruction would be rewritten so that the
block operand was a sub-block that did the coercion. The problem is that
the sub-block itself was never added to the parent block, resulting in
the `br` instruction operand being a bad reference.

Now, the `br` AIR instruction that needs to have coercion instructions
added is replaced with the sub-block itself with type `noreturn`, and
then the sub-block has the coercion instructions and a new `br`
instruction that breaks from the original block.

LLVM backend needed to be fixed to lower `noreturn` blocks without
emitting an unused LLVM basic block.
2021-11-26 23:17:01 -07:00
..
2021-10-21 19:05:26 -07:00
2021-10-21 19:05:26 -07:00
2021-10-26 16:43:18 -07:00
2021-10-28 17:33:05 -07:00
2021-08-30 18:50:07 -04:00
2021-11-25 18:20:39 -07:00
2021-10-05 21:38:47 -07:00
2021-11-22 03:21:31 +01:00
2021-10-21 19:05:26 -07:00
2021-10-21 19:05:26 -07:00
2021-10-21 19:05:26 -07:00
2021-10-24 17:11:43 +02:00
2021-11-26 23:17:01 -07:00
2021-07-26 20:05:48 -04:00