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 -1
View File
@@ -23,7 +23,7 @@ import (
// Version of the compiler pacakge. Must be incremented each time the compiler
// package changes in a way that affects the generated LLVM module.
// This version is independent of the TinyGo version number.
const Version = 18 // last change: fix duplicated named structs
const Version = 19 // last change: fix channel ops with zero values
func init() {
llvm.InitializeAllTargets()