mirror of https://github.com/golang/go.git
cmd/gc: minor code simplification
LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/68980044
This commit is contained in:
parent
85f59b3429
commit
77ac8ecbeb
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue