aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/opt.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2017-04-21 18:44:34 -0700
committerMatthew Dempsky <mdempsky@google.com>2017-04-22 17:43:43 +0000
commitc87520c5981ecdeaa99e7ba636a6088f900c0c75 (patch)
tree8802684b5a4e8a466d8f8faefae8b64123b31a8a /src/cmd/compile/internal/ssa/opt.go
parent8a07469663f7a876ec54d64f723395dd17e6d73d (diff)
downloadgo-c87520c5981ecdeaa99e7ba636a6088f900c0c75.tar.gz
go-c87520c5981ecdeaa99e7ba636a6088f900c0c75.zip
cmd: remove IntSize and Widthint
Use PtrSize and Widthptr instead. CL prepared mostly with sed and uniq. Passes toolstash-check -all. Fixes #19954. Change-Id: I09371bd7128672885cb8bc4e7f534ad56a88d755 Reviewed-on: https://go-review.googlesource.com/40506 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opt.go')
-rw-r--r--src/cmd/compile/internal/ssa/opt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/opt.go b/src/cmd/compile/internal/ssa/opt.go
index f211488cd7..7703d8b704 100644
--- a/src/cmd/compile/internal/ssa/opt.go
+++ b/src/cmd/compile/internal/ssa/opt.go
@@ -11,7 +11,7 @@ func opt(f *Func) {
func dec(f *Func) {
applyRewrite(f, rewriteBlockdec, rewriteValuedec)
- if f.Config.IntSize == 4 && f.Config.arch != "amd64p32" {
+ if f.Config.PtrSize == 4 && f.Config.arch != "amd64p32" {
applyRewrite(f, rewriteBlockdec64, rewriteValuedec64)
}
}