summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-02-13 20:12:35 +0100
committerMatthias Braun <matze@braunis.de>2016-02-13 20:47:39 +0100
commit206f8441e918c355160fd80c783d37f8a7e88be0 (patch)
tree55ceb89203cd5148f7f4da7ee7960c64477ff078 /ir/be/begnuas.c
parent8c9e32f417e25eadf7ae846e494a550506f8aee9 (diff)
Rename is_po2() to is_po2_or_zero()
The function also returns true for zero even though that is not a power of two.
Diffstat (limited to 'ir/be/begnuas.c')
-rw-r--r--ir/be/begnuas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c
index 17a193a..ff9b011 100644
--- a/ir/be/begnuas.c
+++ b/ir/be/begnuas.c
@@ -1500,7 +1500,7 @@ static void emit_global(be_main_env_t const *const main_env,
/* alignment */
unsigned alignment = get_effective_entity_alignment(entity);
- if (!is_po2(alignment))
+ if (!is_po2_or_zero(alignment))
panic("alignment not a power of 2");
if (alignment > 1) {
emit_align(alignment);