1
0
mirror of https://github.com/golang/go synced 2024-11-23 12:10:11 -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:
Ian Lance Taylor 2014-02-26 10:51:00 -08:00
parent 85f59b3429
commit 77ac8ecbeb

View File

@ -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;
}