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

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

Issue 144530045: code review 144530045: cmd/gc: fix call order in array literal of slice litera... (Closed)
Patch Set: diff -r 6e19c3e6b95c0efb627a5ab98187957c325b563a https://code.google.com/p/go/ Created 10 years, 5 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 | « no previous file | test/fixedbugs/bug491.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/order.c
===================================================================
--- a/src/cmd/gc/order.c
+++ b/src/cmd/gc/order.c
@@ -1028,11 +1028,21 @@
orderexprinplace(&n->right, order);
break;
+ case OAPPEND:
case OCALLFUNC:
+ case OCALLINTER:
case OCALLMETH:
- case OCALLINTER:
- case OAPPEND:
+ case OCAP:
case OCOMPLEX:
+ case OCOPY:
+ case OIMAG:
+ case OLEN:
+ case OMAKECHAN:
+ case OMAKEMAP:
+ case OMAKESLICE:
+ case ONEW:
+ case OREAL:
+ case ORECOVER:
ordercall(n, order);
n = ordercopyexpr(n, n->type, order, 0);
break;
« no previous file with comments | « no previous file | test/fixedbugs/bug491.go » ('j') | no next file with comments »

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