Skip to content

Commit

Permalink
Merge pull request golang#4 from 4ad/checknil-non-reg
Browse files Browse the repository at this point in the history
cmd/gc: support checknil on non-reg operands on arm64
  • Loading branch information
davecheney committed Dec 12, 2014
2 parents 10a6891 + 6d8f389 commit fb718ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/gc/pgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ cgen_checknil(Node *n)
dump("checknil", n);
fatal("bad checknil");
}
if(((thechar == '5' || thechar == '9') && n->op != OREGISTER) || !n->addable || n->op == OLITERAL) {
if(((thechar == '5' || thechar == '7' || thechar == '9') && n->op != OREGISTER) || !n->addable || n->op == OLITERAL) {
regalloc(&reg, types[tptr], n);
cgen(n, &reg);
gins(ACHECKNIL, &reg, N);
Expand Down

0 comments on commit fb718ae

Please sign in to comment.