aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/export_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-04-27 09:27:52 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-04-27 22:10:32 +0000
commit0b6a10ef246ff55085d6ec88f68f5fd96677b141 (patch)
treef6686f3edeeb103bf84e02fc28c2c00e47a1b7ca /src/cmd/compile/internal/ssa/export_test.go
parentbe2ee2a4b46d1dbaf8d455038cd12d883714f08d (diff)
downloadgo-0b6a10ef246ff55085d6ec88f68f5fd96677b141.tar.gz
go-0b6a10ef246ff55085d6ec88f68f5fd96677b141.zip
cmd/compile: dowidth more in the front end
dowidth is fundamentally unsafe to call from the back end; it will cause data races. Replace all calls to dowidth in the backend with assertions that the width has been calculated. Then fix all the cases in which that was not so, including the cases from #20145. Fixes #20145. Change-Id: Idba3d19d75638851a30ec2ebcdb703c19da3e92b Reviewed-on: https://go-review.googlesource.com/41970 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
0 files changed, 0 insertions, 0 deletions