From cf5108f222107ed242d2dc2c37d76758157da542 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 21 Feb 2017 14:22:23 -0500 Subject: correct size of types for packed structs with byte aligned but non-power-of-2 fields such as 24 --- src/ir.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/ir.cpp') 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) { -- cgit v1.2.3