mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
fix bug in pretty printer
This commit is contained in:
parent
bb5f95c192
commit
30f47d6ec1
@ -797,7 +797,7 @@ parse(FILE *f, void data(Dat *), void func(Fn *))
|
|||||||
static void
|
static void
|
||||||
printref(Ref r, Fn *fn, FILE *f)
|
printref(Ref r, Fn *fn, FILE *f)
|
||||||
{
|
{
|
||||||
switch (r.type) {
|
switch (rtype(r)) {
|
||||||
case RTmp:
|
case RTmp:
|
||||||
if (r.val < Tmp0)
|
if (r.val < Tmp0)
|
||||||
fprintf(f, "R%d", r.val);
|
fprintf(f, "R%d", r.val);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user