]> Cypherpunks repositories - gostls13.git/commitdiff
test: fix nilptr5 for AIX
authorClément Chigot <clement.chigot@atos.net>
Mon, 26 Nov 2018 15:11:18 +0000 (16:11 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 27 Nov 2018 15:36:08 +0000 (15:36 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/nilptr5_aix.go

index ff6900593b8a3b7b9e0b15c012fc51d6b73990ee..142780718b528d92aa1e989d6be1b76791631412 100644 (file)
@@ -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)