aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/func.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/noder/func.go')
-rw-r--r--src/cmd/compile/internal/noder/func.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/noder/func.go b/src/cmd/compile/internal/noder/func.go
index 702138157c..6077b348a5 100644
--- a/src/cmd/compile/internal/noder/func.go
+++ b/src/cmd/compile/internal/noder/func.go
@@ -37,8 +37,7 @@ func (g *irgen) funcBody(fn *ir.Func, recv *syntax.Field, sig *syntax.FuncType,
// calculated its size, including parameter offsets. Now that we've
// created the parameter Names, force a recalculation to ensure
// their offsets are correct.
- typ.Align = 0
- types.CalcSize(typ)
+ types.RecalcSize(typ)
if block != nil {
typecheck.DeclContext = ir.PAUTO