Skip to content

Commit

Permalink
Sync IR_DEBUG conditions - #if/ifdef/defined (-Wundef) (#88)
Browse files Browse the repository at this point in the history
IR_DEBUG can be either undefined or defined (to value 1).
  • Loading branch information
petk authored Jun 10, 2024
1 parent 97555e1 commit 5be6dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ir_emit.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#define DASM_M_FREE(ctx, p, sz) ir_mem_free(p)

#if IR_DEBUG
#ifdef IR_DEBUG
# define DASM_CHECKS
#endif

Expand Down
2 changes: 1 addition & 1 deletion ir_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,7 @@ static void ir_merge_to_unhandled(ir_live_interval **unhandled, ir_live_interval
ival = ival->next;
}
}
#if IR_DEBUG
#ifdef IR_DEBUG
ival = *unhandled;
pos = 0;

Expand Down

0 comments on commit 5be6dd8

Please sign in to comment.