mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b49f583ab7 |
+1
-3
@@ -8,9 +8,7 @@ import (
|
|||||||
//
|
//
|
||||||
// The program must already be parsed and type-checked with the .Parse() method.
|
// The program must already be parsed and type-checked with the .Parse() method.
|
||||||
func (p *Program) LoadSSA() *ssa.Program {
|
func (p *Program) LoadSSA() *ssa.Program {
|
||||||
// TODO: re-enable SanityCheckFunctions when x/tools is upgraded to
|
prog := ssa.NewProgram(p.fset, ssa.SanityCheckFunctions|ssa.BareInits|ssa.GlobalDebug|ssa.InstantiateGenerics)
|
||||||
// a version with a fix for https://golang.org/issues/73594.
|
|
||||||
prog := ssa.NewProgram(p.fset /*ssa.SanityCheckFunctions|*/, ssa.BareInits|ssa.GlobalDebug|ssa.InstantiateGenerics)
|
|
||||||
|
|
||||||
for _, pkg := range p.sorted {
|
for _, pkg := range p.sorted {
|
||||||
prog.CreatePackage(pkg.Pkg, pkg.Files, &pkg.info, true)
|
prog.CreatePackage(pkg.Pkg, pkg.Files, &pkg.info, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user