summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2018-05-16 16:47:30 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2018-05-16 17:14:26 +0200
commit8fed270ae91da7caec19c92d2ccc90bbb5d668e0 (patch)
treef7dc63f7475e8de41d4e86d4840c7e014d836607 /ir/lower
parent573e861af59e988b0499e6583aacc27ab5deec8f (diff)
Fix compiler errors if neither NDEBUG nor DEBUG_libfirm are defined
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_calls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index 942f128..15b0e50 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -971,7 +971,9 @@ static void fix_call_compound_params(const cl_entry *entry, const ir_type *ctp)
#define INPUT_TO_PARAM(x) ((x) - fixed_call_args + mtp_info->n_hidden)
#define PARAM_TO_INPUT(x) ((x) + fixed_call_args - mtp_info->n_hidden)
- DEBUG_ONLY(size_t max_input = PARAM_TO_INPUT(n_params_lower));
+#ifndef NDEBUG
+ size_t max_input = PARAM_TO_INPUT(n_params_lower);
+#endif
for (size_t h = 0; h < n_params; ++h) {
assert(i <= max_input);