]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add sizeCalculationDisabled flag
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 27 Apr 2017 23:37:25 +0000 (16:37 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 28 Apr 2017 01:24:52 +0000 (01:24 +0000)
commitc51559813f615aa33ca42c0ad963d7712f561433
tree7683f050ed85adc06e5c6818230006a2012f02f1
parentdae5389d3d2b5303542a6b699eff49307b7ed985
cmd/compile: add sizeCalculationDisabled flag

Use it to ensure that dowidth is not called
from the backend on a type whose size
has not yet been calculated.

This is an alternative to CL 42016.

Change-Id: I8c7b4410ee4c2a68573102f6b9b635f4fdcf392e
Reviewed-on: https://go-review.googlesource.com/42018
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/align.go
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/types/type.go