summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-24 15:30:20 +0100
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-24 15:30:20 +0100
commit51f0b930fbb8011c4cd44c1461b67018e643bdc9 (patch)
tree772ac63fb64fe64e4379dd901b0e97f08c437d9f /ir/lower
parent3f5234329d260277bdfb3f83ff92196bdc87470f (diff)
improved readability/code quality according to clang-tidy readability checks
resolved warnings for these checks: - readability-non-const-parameter - readability-avoid-const-params-in-decls - readability-named-parameter
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index 15b0e50..67d5299 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -113,7 +113,7 @@ static how_to_pass_t how_to_pass(aggregate_spec_t const *const spec)
return PASS_AS_VALUES;
}
-static unsigned higher_arg_number(unsigned *arg_map, unsigned lower_arg)
+static unsigned higher_arg_number(const unsigned *arg_map, unsigned lower_arg)
{
for (unsigned i = 0; arg_map[i] <= lower_arg; i++) {
if (arg_map[i] == lower_arg) {