tinygo/compiler
Ayke van Laethem 6c6a43310a
compiler: fix invalid incoming block in complex typeassert flow
A single *ssa.BasicBlock may be split in multiple LLVM basic blocks due
to typeassert instructions. This means the incoming block and outgoing
block are different. PHI nodes need to get the result from the outgoing
block, which was fixed before, but incoming branches need to branch to
the incoming block, not the outgoing block.

Branching to the outgoing block led to a LLVM verification error when
compiling the fmt package.

Originally found in (*fmt.pp).handleMethods.
2018-10-23 15:00:37 +02:00
..
calls.go compiler: implement deferring of immediately-applied closures 2018-10-22 14:06:51 +02:00
compiler.go compiler: fix invalid incoming block in complex typeassert flow 2018-10-23 15:00:37 +02:00
map.go compiler: support comma-ok in map lookup 2018-10-20 17:54:16 +02:00
optimizer.go compiler: eliminate created but never used maps 2018-10-12 17:00:39 +02:00
sizes.go compiler: refactor compiler into separate package 2018-09-22 20:32:28 +02:00