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

Unified Diff: src/cmd/8g/cgen.c

Issue 223070: code review 223070: 8g: fix out of register bug in byte(x) code (Closed)
Patch Set: code review 223070: 8g: fix out of register bug in byte(x) code Created 15 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/8g/cgen.c
===================================================================
--- a/src/cmd/8g/cgen.c
+++ b/src/cmd/8g/cgen.c
@@ -215,14 +215,9 @@
break;
}
mgen(nl, &n1, res);
- if(n->type->width > widthptr)
- tempname(&n2, n->type);
- else
- regalloc(&n2, n->type, res);
+ tempname(&n2, n->type);
gmove(&n1, &n2);
gmove(&n2, res);
- if(n2.op == OREGISTER)
- regfree(&n2);
mfree(&n1);
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

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