Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(642)

Unified Diff: src/cmd/gc/subr.c

Issue 197044: code review 197044: gc: ... T corner cases (Closed)
Patch Set: code review 197044: gc: ... T corner cases Created 15 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/gc/reflect.c ('k') | src/cmd/gc/typecheck.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/subr.c
===================================================================
--- a/src/cmd/gc/subr.c
+++ b/src/cmd/gc/subr.c
@@ -1004,6 +1004,9 @@
if(n->dodata != 0)
fmtprint(fp, " dd(%d)", n->dodata);
+ if(n->isddd != 0)
+ fmtprint(fp, " isddd(%d)", n->isddd);
+
return 0;
}
@@ -2585,6 +2588,9 @@
t = n->left->type;
if(t == T)
goto ret;
+
+ if(n->left->op == OTYPE)
+ goto ret;
if(n->right->op != ONAME)
goto ret;
@@ -2783,6 +2789,9 @@
n = newname(lookup(buf));
}
a = nod(ODCLFIELD, n, typenod(t->type));
+ a->isddd = t->isddd;
+ if(n != N)
+ n->isddd = t->isddd;
args = list(args, a);
}
return args;
« no previous file with comments | « src/cmd/gc/reflect.c ('k') | src/cmd/gc/typecheck.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b