aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/transform_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/transform_test.go')
-rw-r--r--transform/transform_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/transform/transform_test.go b/transform/transform_test.go
index 4cab255e6..98a1aab2d 100644
--- a/transform/transform_test.go
+++ b/transform/transform_test.go
@@ -159,7 +159,9 @@ func compileGoFileForTesting(t *testing.T, filename string) llvm.Module {
// Compile AST to IR.
program := lprogram.LoadSSA()
pkg := lprogram.MainPkg()
- mod, errs := compiler.CompilePackage(filename, pkg, program.Package(pkg.Pkg), machine, compilerConfig, false)
+ ssaPkg := program.Package(pkg.Pkg)
+ ssaPkg.Build()
+ mod, errs := compiler.CompilePackage(filename, pkg, ssaPkg, machine, compilerConfig, false)
if errs != nil {
for _, err := range errs {
t.Error(err)