diff options
| author | Russ Cox <rsc@golang.org> | 2009-08-07 12:50:26 -0700 | 
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-08-07 12:50:26 -0700 | 
| commit | c69c0de9986608350aa9c7fe96a2440153c165c3 (patch) | |
| tree | b3e76fcbf7c5bd59929c9df5a6bcaff1785037cb /src/cmd/gc/sinit.c | |
| parent | e5dc305cc6268fe7b36c4f50dc181088280b7a59 (diff) | |
| download | golang-c69c0de9986608350aa9c7fe96a2440153c165c3.tar.gz | |
forward declarations not necessary.
still to do:
	* initializer cycle detection
	* nicer error for type checking cycles
R=ken
OCL=32855
CL=32880
Diffstat (limited to 'src/cmd/gc/sinit.c')
| -rw-r--r-- | src/cmd/gc/sinit.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 485b7f684..83db9bff1 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -69,6 +69,12 @@ initlin(NodeList *l)  	for(; l; l=l->next) {  		n = l->n; +		switch(n->op) { +		case ODCLFUNC: +		case ODCLCONST: +		case ODCLTYPE: +			continue; +		}  		initlin(n->ninit);  		n->ninit = nil;  		xxx.list = list(xxx.list, n); | 
