add missing return pointer restore for regular coroutine tail calls

This fixes an issue where a normal suspending call followed by a plain tail call would result in the tail return value being written to the return pointer of the normal suspending call.
This is fixed by saving the return pointer at the start of the function and restoring it before initiating a plain tail call.
This commit is contained in:
Nia Weiss
2020-10-31 11:37:50 -04:00
committed by Ron Evans
parent c20328472b
commit d424b3d7ea
2 changed files with 11 additions and 5 deletions
+1
View File
@@ -188,6 +188,7 @@ tinygo-test:
$(TINYGO) test encoding/base32
$(TINYGO) test encoding/hex
$(TINYGO) test hash/fnv
$(TINYGO) test hash/crc64
$(TINYGO) test math
$(TINYGO) test text/scanner
$(TINYGO) test unicode/utf8