1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:54:40 -07:00

gc: issue 894

Fixes #894.

R=ken2
CC=golang-dev
https://golang.org/cl/1701051
This commit is contained in:
Russ Cox 2010-07-15 15:25:32 -07:00
parent 31c07dfddf
commit b2a919fc29
3 changed files with 6 additions and 0 deletions

View File

@ -794,6 +794,8 @@ cgen_inline(Node *n, Node *res)
goto no; goto no;
if(!n->left->addable) if(!n->left->addable)
goto no; goto no;
if(n->left->sym == S)
goto no;
if(n->left->sym->pkg != runtimepkg) if(n->left->sym->pkg != runtimepkg)
goto no; goto no;
if(strcmp(n->left->sym->name, "slicearray") == 0) if(strcmp(n->left->sym->name, "slicearray") == 0)

View File

@ -1183,6 +1183,8 @@ cgen_inline(Node *n, Node *res)
goto no; goto no;
if(!n->left->addable) if(!n->left->addable)
goto no; goto no;
if(n->left->sym == S)
goto no;
if(n->left->sym->pkg != runtimepkg) if(n->left->sym->pkg != runtimepkg)
goto no; goto no;
if(strcmp(n->left->sym->name, "slicearray") == 0) if(strcmp(n->left->sym->name, "slicearray") == 0)

View File

@ -889,6 +889,8 @@ cgen_inline(Node *n, Node *res)
goto no; goto no;
if(!n->left->addable) if(!n->left->addable)
goto no; goto no;
if(n->left->sym == S)
goto no;
if(n->left->sym->pkg != runtimepkg) if(n->left->sym->pkg != runtimepkg)
goto no; goto no;
if(strcmp(n->left->sym->name, "slicearray") == 0) if(strcmp(n->left->sym->name, "slicearray") == 0)