mirror of
https://github.com/golang/go
synced 2024-10-06 08:00:07 +00:00
cleanup - delete unneeded vargen++
R=ken OCL=17394 CL=17394
This commit is contained in:
parent
d378321b6e
commit
ab9db8a5f8
|
@ -686,7 +686,6 @@ addvar(Node *n, Type *t, int ctxt)
|
|||
if(ctxt == PEXTERN) {
|
||||
r = externdcl;
|
||||
gen = 0;
|
||||
vargen++; // just for diffing output against old compiler
|
||||
} else {
|
||||
r = autodcl;
|
||||
vargen++;
|
||||
|
@ -737,7 +736,6 @@ addtyp(Type *n, int ctxt)
|
|||
r = autodcl;
|
||||
pushdcl(s);
|
||||
}
|
||||
vargen++; // just for diffing output against old compiler
|
||||
|
||||
if(s->tblock == block)
|
||||
yyerror("type %S redeclared in this block %d", s, block);
|
||||
|
|
Loading…
Reference in a new issue