aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stackalloc.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-12-07 16:02:42 -0800
committerRobert Griesemer <gri@golang.org>2016-12-08 21:31:28 +0000
commit82d0caea2c5041a0d0260ff5ec7f7b61ee2bb0af (patch)
tree74e3fa834764b8aca83051140ccaf4f0ebc4c88d /src/cmd/compile/internal/ssa/stackalloc.go
parent24597c080bdba1de8f7e5d46aa250e5f25d24311 (diff)
downloadgo-82d0caea2c5041a0d0260ff5ec7f7b61ee2bb0af.tar.xz
[dev.inline] cmd/internal/src: make Pos implementation abstract
Adjust cmd/compile accordingly. This will make it easier to replace the underlying implementation. Change-Id: I33645850bb18c839b24785b6222a9e028617addb Reviewed-on: https://go-review.googlesource.com/34133 Reviewed-by: David Lazar <lazard@golang.org>
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
}