aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-02-21 14:22:23 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-02-21 14:22:23 -0500
commitcf5108f222107ed242d2dc2c37d76758157da542 (patch)
tree9fbf62f7c54929d18031ad42256fcc003ca428d9 /src/ir.cpp
parent4709fe1176ce88a35e877622dc977948846a3a43 (diff)
downloadzig-cf5108f222107ed242d2dc2c37d76758157da542.tar.gz
zig-cf5108f222107ed242d2dc2c37d76758157da542.zip
correct size of types for packed structs
with byte aligned but non-power-of-2 fields such as 24
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 152603487a..a5bb8546bd 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -9566,10 +9566,6 @@ static TypeTableEntry *ir_analyze_instruction_set_fn_visible(IrAnalyze *ira,
return ira->codegen->builtin_types.entry_void;
}
-static bool is_power_of_2(uint64_t x) {
- return x != 0 && ((x & (~x + 1)) == x);
-}
-
static TypeTableEntry *ir_analyze_instruction_set_global_align(IrAnalyze *ira,
IrInstructionSetGlobalAlign *instruction)
{