aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stackalloc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
-rw-r--r--src/cmd/compile/internal/ssa/stackalloc.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go
index dc2fd7d33b..599dc934f1 100644
--- a/src/cmd/compile/internal/ssa/stackalloc.go
+++ b/src/cmd/compile/internal/ssa/stackalloc.go
@@ -6,7 +6,10 @@
package ssa
-import "fmt"
+import (
+ "cmd/internal/src"
+ "fmt"
+)
type stackAllocState struct {
f *Func
@@ -37,7 +40,7 @@ func newStackAllocState(f *Func) *stackAllocState {
return new(stackAllocState)
}
if s.f != nil {
- f.Config.Fatalf(0, "newStackAllocState called without previous free")
+ f.Config.Fatalf(src.Pos{}, "newStackAllocState called without previous free")
}
return s
}