compiler: avoid zero-sized alloca in channel operations

This works around a bug in LLVM
(https://bugs.llvm.org/show_bug.cgi?id=49916) but seems like a good
change in general.
This commit is contained in:
Ayke van Laethem
2021-09-08 17:07:10 +02:00
committed by Ron Evans
parent 485a9284e7
commit 6315db21f7
5 changed files with 169 additions and 10 deletions
+1
View File
@@ -51,6 +51,7 @@ func TestCompiler(t *testing.T) {
{"pragma.go", ""},
{"goroutine.go", "wasm"},
{"goroutine.go", "cortex-m-qemu"},
{"channel.go", ""},
{"intrinsics.go", "cortex-m-qemu"},
{"intrinsics.go", "wasm"},
}