]> Cypherpunks repositories - gostls13.git/commit
cmd/6g, cmd/8g: simplify calls to gvardef
authorIan Lance Taylor <iant@golang.org>
Wed, 26 Feb 2014 15:37:10 +0000 (07:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Feb 2014 15:37:10 +0000 (07:37 -0800)
commitfa6375ea47ce054d5f1d93a4a1fe7efe2e293991
tree39f93f3182c1693c27e7c2655be63c5c862250c8
parent373466380586b04b8a9163938a8daf3f5cb9dd45
cmd/6g, cmd/8g: simplify calls to gvardef

The gvardef function does nothing if n->class == PEXTERN, so
we don't need to test for that before calling it.  This makes
the 6g/8g code more like the 5g code and clarifies that the
cases that do not test for n->class != PEXTERN are not buggy.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/68900044
src/cmd/6g/cgen.c
src/cmd/8g/cgen.c