1
0
mirror of https://github.com/golang/go synced 2024-11-26 05:57:58 -07:00

disambiguate error message

SVN=127152
This commit is contained in:
Rob Pike 2008-07-14 20:54:16 -07:00
parent c6e8e1cebf
commit e9a194382e

View File

@ -106,7 +106,7 @@ allocparams(void)
t = funcfirst(&list, curfn->type);
while(t != T) {
if(d == D)
fatal("allocparams: this nil");
fatal("allocparams: this & in nil");
if(d->op != ONAME) {
d = d->forw;
continue;
@ -114,7 +114,7 @@ allocparams(void)
n = d->dnode;
if(n->class != PPARAM)
fatal("allocparams: this class");
fatal("allocparams: this & in class");
n->xoffset = t->width;
d = d->forw;
@ -125,7 +125,7 @@ allocparams(void)
while(t != T) {
if(t->nname != N && t->nname->sym->name[0] != '_') {
if(d == D)
fatal("allocparams: this nil");
fatal("allocparams: out nil");
if(d->op != ONAME) {
d = d->forw;
continue;
@ -133,7 +133,7 @@ allocparams(void)
n = d->dnode;
if(n->class != PPARAM)
fatal("allocparams: this class");
fatal("allocparams: out class");
n->xoffset = t->width;
d = d->forw;