public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3474e20
)
Show expression trees correctly.
author
David Given
<dg@cowlark.com>
Sat, 1 Oct 2016 21:41:03 +0000
(23:41 +0200)
committer
David Given
<dg@cowlark.com>
Sat, 1 Oct 2016 21:41:03 +0000
(23:41 +0200)
mach/proto/mcg/ir.c
patch
|
blob
|
history
diff --git
a/mach/proto/mcg/ir.c
b/mach/proto/mcg/ir.c
index
d2b64b1
..
0aea3ea
100644
(file)
--- a/
mach/proto/mcg/ir.c
+++ b/
mach/proto/mcg/ir.c
@@
-140,7
+140,7
@@
static void print_expr(char k, const struct ir* ir)
default:
if (ir->left)
{
- if (ir->left->root
=
= ir->root)
+ if (ir->left->root
!
= ir->root)
tracef(k, "$%d", ir->left->id);
else
print_expr(k, ir->left);
@@
-148,7
+148,7
@@
static void print_expr(char k, const struct ir* ir)
if (ir->right)
{
tracef(k, ", ");
- if (ir->right->root
=
= ir->root)
+ if (ir->right->root
!
= ir->root)
tracef(k, "$%d", ir->right->id);
else
print_expr(k, ir->right);