From 5680874e0c633e368b40ccc9534e5125375d89cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Chigot?= Date: Mon, 26 Nov 2018 16:11:18 +0100 Subject: [PATCH] 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 --- test/nilptr5_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.48.1