aboutsummaryrefslogtreecommitdiff
path: root/test/nilptr5_aix.go
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2018-11-26 16:11:18 +0100
committerIan Lance Taylor <iant@golang.org>2018-11-27 15:36:08 +0000
commit5680874e0c633e368b40ccc9534e5125375d89cb (patch)
treeb198a2f666a84712bbf53a6e35f9e282026bb622 /test/nilptr5_aix.go
parentcfac65bf2fc103411aab9d6913c777f5e78e065a (diff)
downloadgo-5680874e0c633e368b40ccc9534e5125375d89cb.tar.gz
go-5680874e0c633e368b40ccc9534e5125375d89cb.zip
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 <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'test/nilptr5_aix.go')
-rw-r--r--test/nilptr5_aix.go2
1 files changed, 1 insertions, 1 deletions
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)