cmd/compile: ensure pointer arithmetic happens after the nil check
Conflict:NA
Reference:https://go-review.googlesource.com/c/go/+/537775
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
(cherry picked from commit bcf346236f2120b938d24cfd37971113c5355394)