Commit 77ac8ecb authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/gc: minor code simplification

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/68980044
parent 85f59b34
......@@ -984,7 +984,7 @@ checkparam(Node *fn, Prog *p, Node *n)
return;
for(l = fn->dcl; l != nil; l = l->next) {
a = l->n;
class = l->n->class & ~PHEAP;
class = a->class & ~PHEAP;
if(a->op == ONAME && (class == PPARAM || class == PPARAMOUT) && a == n)
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment