mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 03:03:27 +00:00
transform: remove switched func lowering
The switched func lowering was mainly necessary for coroutines. With coroutines removed, this is no longer necessary.
This commit is contained in:
Vendored
-5
@@ -61,11 +61,6 @@ func newStruct() {
|
||||
}
|
||||
|
||||
func newFuncValue() *func() {
|
||||
// On some platforms that use runtime.funcValue ("switch" style) function
|
||||
// values, a func value is allocated as having two pointer words while the
|
||||
// struct looks like {unsafe.Pointer; uintptr}. This is so that the interp
|
||||
// package won't get confused, see getPointerBitmap in compiler/llvm.go for
|
||||
// details.
|
||||
return new(func())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user