mirror of
https://github.com/golang/go
synced 2024-11-23 14:40:02 -07:00
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;
|
return;
|
||||||
for(l = fn->dcl; l != nil; l = l->next) {
|
for(l = fn->dcl; l != nil; l = l->next) {
|
||||||
a = l->n;
|
a = l->n;
|
||||||
class = l->n->class & ~PHEAP;
|
class = a->class & ~PHEAP;
|
||||||
if(a->op == ONAME && (class == PPARAM || class == PPARAMOUT) && a == n)
|
if(a->op == ONAME && (class == PPARAM || class == PPARAMOUT) && a == n)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user