tinygo/compiler
Ayke van Laethem 42da7654ec compiler: don't use types in the global context
This usually works by chance, but leads to crashes. So we should never
ever do this.

I'm pretty sure this is the crash behind this issue: https://github.com/tinygo-org/tinygo/issues/3894

It may also have caused this crash: https://github.com/tinygo-org/tinygo/issues/3874

I have a suspicion this is also behind the rather crash-prone CircleCI
jobs, that we haven't been able to find the source of. But we'll find
out soon enough once this fix is merged.

To avoid hitting this issue again in the future, I've created a PR to
remove these dangerous functions altogether from the go-llvm API:
https://github.com/tinygo-org/go-llvm/pull/54
2023-09-19 09:21:51 +02:00
..
ircheck all: remove pointer ElementType calls 2022-10-19 22:23:19 +02:00
llvmutil compiler: move some llvmutil code into the compiler 2023-01-18 08:24:42 +01:00
testdata all: switch to LLVM 16 2023-09-18 21:58:02 +02:00
alias.go all: add type parameter to CreateCall 2022-10-19 22:23:19 +02:00
asserts.go compiler: add support for new unsafe slice/string functions 2023-01-17 08:38:54 +01:00
atomic.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
calls.go compiler: improve panic message when a runtime call is unavailable 2023-08-04 11:59:11 +02:00
channel.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
compiler.go compiler: Handle nil array and struct constants 2023-09-10 23:14:58 +02:00
compiler_test.go compiler: add min and max builtin support 2023-08-04 11:59:11 +02:00
defer.go feat: fix typos 2023-03-24 09:22:38 -07:00
errors.go all: fix staticcheck warnings 2021-09-27 15:47:12 +02:00
func.go compiler: correctly generate code for local named types 2023-03-21 22:22:03 +01:00
gc.go wasm: avoid miscompile with ThinLTO 2023-01-18 08:24:42 +01:00
goroutine.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
inlineasm.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
interface.go compiler: don't use types in the global context 2023-09-19 09:21:51 +02:00
interrupt.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
intrinsics.go compiler: implement clear builtin for slices 2023-08-04 11:59:11 +02:00
llvm.go compiler: implement most math/bits functions 2023-03-29 20:55:09 +02:00
map.go compiler: implement clear builtin for maps 2023-08-04 11:59:11 +02:00
sizes.go compiler: fix unsafe.Sizeof for chan and map values 2022-09-01 03:53:27 +02:00
symbol.go all: switch to LLVM 16 2023-09-18 21:58:02 +02:00
syscall.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
volatile.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00