aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index 726d3b3..91bcf11 100644
--- a/qbe.c
+++ b/qbe.c
@@ -807,7 +807,7 @@ funcexpr(struct func *f, struct expr *e)
b[1]->phi.blk[0] = f->end;
funclabel(f, b[0]);
r = funcexpr(f, e->binary.r);
- b[1]->phi.val[1] = r;
+ b[1]->phi.val[1] = convert(f, &typebool, e->binary.r->type, r);
b[1]->phi.blk[1] = f->end;
funclabel(f, b[1]);
functemp(f, &b[1]->phi.res);