Commit 3a884d76 authored by Ken Thompson's avatar Ken Thompson

bug in simul assignment

R=r
OCL=16053
CL=16053
parent bf855f5a
...@@ -2933,13 +2933,10 @@ reorder3(Node *n) ...@@ -2933,13 +2933,10 @@ reorder3(Node *n)
if(c2 > c1) { if(c2 > c1) {
if(vmatch1(l1->left, l2->right)) { if(vmatch1(l1->left, l2->right)) {
q = nod(OXXX, N, N); q = nod(OXXX, N, N);
tempname(q, l2->right->type); tempname(q, l1->right->type);
q = nod(OAS, l1->left, q); q = nod(OAS, l1->left, q);
l1->left = q->right; l1->left = q->right;
if(r == N) r = list(r, q);
r = q;
else
r = list(r, q);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment