]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fixing GMQCC_SUPPRESS_EMPTY_BODY typo
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 15:22:56 +0000 (17:22 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 28 Jun 2012 15:23:01 +0000 (17:23 +0200)
gmqcc.h
ir.c

diff --git a/gmqcc.h b/gmqcc.h
index 035079f704ef62926f1111a166d39077d8b29723..7fe6f13219581083035bfd56b8281d1cb9267053 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -77,7 +77,7 @@
  * This is a hack to silent clang regarding empty
  * body if statements.
  */
-#define GMQCC_SUPRESS_EMPTY_BODY do { } while (0)
+#define GMQCC_SUPPRESS_EMPTY_BODY do { } while (0)
 
 /*
  * Inline is not supported in < C90, however some compilers
diff --git a/ir.c b/ir.c
index 2aa879b07b643be98996d5bc5034ef946e2787ff..74363f8df0188565c3704934837b3e93749e1e48 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -378,22 +378,22 @@ void ir_instr_delete(ir_instr *self)
     for (i = 0; i < self->phi_count; ++i) {
         size_t idx;
         if (ir_value_writes_find(self->phi[i].value, self, &idx))
-            if (ir_value_writes_remove(self->phi[i].value, idx)) GMQCC_SUPRESS_EMPTY_BODY;
+            if (ir_value_writes_remove(self->phi[i].value, idx)) GMQCC_SUPPRESS_EMPTY_BODY;
         if (ir_value_reads_find(self->phi[i].value, self, &idx))
-            if (ir_value_reads_remove (self->phi[i].value, idx)) GMQCC_SUPRESS_EMPTY_BODY;
+            if (ir_value_reads_remove (self->phi[i].value, idx)) GMQCC_SUPPRESS_EMPTY_BODY;
     }
     MEM_VECTOR_CLEAR(self, phi);
     for (i = 0; i < self->params_count; ++i) {
         size_t idx;
         if (ir_value_writes_find(self->params[i], self, &idx))
-            if (ir_value_writes_remove(self->params[i], idx)) GMQCC_SUPRESS_EMPTY_BODY;
+            if (ir_value_writes_remove(self->params[i], idx)) GMQCC_SUPPRESS_EMPTY_BODY;
         if (ir_value_reads_find(self->params[i], self, &idx))
-            if (ir_value_reads_remove (self->params[i], idx)) GMQCC_SUPRESS_EMPTY_BODY;
+            if (ir_value_reads_remove (self->params[i], idx)) GMQCC_SUPPRESS_EMPTY_BODY;
     }
     MEM_VECTOR_CLEAR(self, params);
-    if (ir_instr_op(self, 0, NULL, false)) GMQCC_SUPRESS_EMPTY_BODY;
-    if (ir_instr_op(self, 1, NULL, false)) GMQCC_SUPRESS_EMPTY_BODY;
-    if (ir_instr_op(self, 2, NULL, false)) GMQCC_SUPRESS_EMPTY_BODY;
+    if (ir_instr_op(self, 0, NULL, false)) GMQCC_SUPPRESS_EMPTY_BODY;
+    if (ir_instr_op(self, 1, NULL, false)) GMQCC_SUPPRESS_EMPTY_BODY;
+    if (ir_instr_op(self, 2, NULL, false)) GMQCC_SUPPRESS_EMPTY_BODY;
     mem_d(self);
 }
 
@@ -1065,7 +1065,7 @@ bool ir_call_param(ir_instr* self, ir_value *v)
         return false;
     if (!ir_value_reads_add(v, self)) {
         if (!ir_instr_params_remove(self, self->params_count-1))
-            GMQCC_SUPRESS_EMPTY_BODY;
+            GMQCC_SUPPRESS_EMPTY_BODY;
         return false;
     }
     return true;