mirror of
https://github.com/golang/go
synced 2024-11-20 00:24:43 -07:00
gc: issue 894
Fixes #894. R=ken2 CC=golang-dev https://golang.org/cl/1701051
This commit is contained in:
parent
31c07dfddf
commit
b2a919fc29
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user