Fixing GMQCC_SUPPRESS_EMPTY_BODY typo

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-06-28 17:22:56 +02:00
parent 01b3f5ef58
commit 9e7143d934
2 changed files with 9 additions and 9 deletions

View file

@ -77,7 +77,7 @@
* This is a hack to silent clang regarding empty * This is a hack to silent clang regarding empty
* body if statements. * 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 * Inline is not supported in < C90, however some compilers

16
ir.c
View file

@ -378,22 +378,22 @@ void ir_instr_delete(ir_instr *self)
for (i = 0; i < self->phi_count; ++i) { for (i = 0; i < self->phi_count; ++i) {
size_t idx; size_t idx;
if (ir_value_writes_find(self->phi[i].value, self, &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_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); MEM_VECTOR_CLEAR(self, phi);
for (i = 0; i < self->params_count; ++i) { for (i = 0; i < self->params_count; ++i) {
size_t idx; size_t idx;
if (ir_value_writes_find(self->params[i], self, &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_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); MEM_VECTOR_CLEAR(self, params);
if (ir_instr_op(self, 0, 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_SUPRESS_EMPTY_BODY; if (ir_instr_op(self, 1, NULL, false)) GMQCC_SUPPRESS_EMPTY_BODY;
if (ir_instr_op(self, 2, NULL, false)) GMQCC_SUPRESS_EMPTY_BODY; if (ir_instr_op(self, 2, NULL, false)) GMQCC_SUPPRESS_EMPTY_BODY;
mem_d(self); mem_d(self);
} }
@ -1065,7 +1065,7 @@ bool ir_call_param(ir_instr* self, ir_value *v)
return false; return false;
if (!ir_value_reads_add(v, self)) { if (!ir_value_reads_add(v, self)) {
if (!ir_instr_params_remove(self, self->params_count-1)) if (!ir_instr_params_remove(self, self->params_count-1))
GMQCC_SUPRESS_EMPTY_BODY; GMQCC_SUPPRESS_EMPTY_BODY;
return false; return false;
} }
return true; return true;