]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.c
ast_binary now keeps track of types
[xonotic/gmqcc.git] / ir.c
diff --git a/ir.c b/ir.c
index b3741b8467486900dbb4e4a4b23b6b3f2aa4db45..3ead45edb10093a551bd10184d3d045899dec0b1 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2815,7 +2815,11 @@ void ir_instr_dump(ir_instr *in, char *ind,
         if (in->_ops[1] || in->_ops[2])
             oprintf(" <- ");
     }
-    oprintf("%s\t", qc_opname(in->opcode));
+    if (in->opcode == INSTR_CALL0) {
+        oprintf("CALL%i\t", in->params_count);
+    } else
+        oprintf("%s\t", qc_opname(in->opcode));
+
     if (in->_ops[0] && !(in->_ops[1] || in->_ops[2])) {
         ir_value_dump(in->_ops[0], oprintf);
         comma = ",\t";
@@ -2847,6 +2851,7 @@ void ir_value_dump(ir_value* v, int (*oprintf)(const char*, ...))
 {
     if (v->isconst) {
         switch (v->vtype) {
+            default:
             case TYPE_VOID:
                 oprintf("(void)");
                 break;