]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: always nil check before interface call
authorKeith Randall <khr@golang.org>
Tue, 14 Nov 2017 03:03:31 +0000 (19:03 -0800)
committerKeith Randall <khr@golang.org>
Tue, 14 Nov 2017 05:39:45 +0000 (05:39 +0000)
commitfa1f52c5f61fdda063851be16366b5eda5a08e58
treed5190d09b35bf328e228b7d36d4e40af589cead0
parent50ec831749fc40b30fd43cf0594d388500ea2887
cmd/compile: always nil check before interface call

Fixes #22703

The fix was already done by Cherry for defer/go of an interface call (CL 23820).
We just need to do it everywhere.

Change-Id: I0115d22e443931fe1bcce44c93c4d0770b5fd268
Reviewed-on: https://go-review.googlesource.com/77450
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/asm_test.go
src/cmd/compile/internal/gc/ssa.go