From: Clément Chigot Date: Mon, 26 Nov 2018 15:11:18 +0000 (+0100) Subject: test: fix nilptr5 for AIX X-Git-Tag: go1.12beta1~258 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5680874e0c633e368b40ccc9534e5125375d89cb;p=gostls13.git test: fix nilptr5 for AIX This commit fixes a mistake made in CL 144538. This nilcheck can be removed because OpPPC64LoweredMove will fault if arg0 is nil, as it's used to store. Further information can be found in cmd/compile/internal/ssa/nilcheck.go. Change-Id: Ifec0080c00eb1f94a8c02f8bf60b93308e71b119 Reviewed-on: https://go-review.googlesource.com/c/151298 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/test/nilptr5_aix.go b/test/nilptr5_aix.go index ff6900593b..142780718b 100644 --- a/test/nilptr5_aix.go +++ b/test/nilptr5_aix.go @@ -23,7 +23,7 @@ type T [29]byte func f6(p, q *T) { x := *p // ERROR "generated nil check" - *q = x // ERROR "generated nil check" + *q = x // ERROR "removed nil check" } // make sure to remove nil check for memory move (issue #18003)