From cf5cd84d605e1f663630c51bfd6f6f1b320fa35a Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Wed, 21 Aug 2024 09:04:07 -0700 Subject: [PATCH] fix alignment of 16 bytes --- crates/compiler/gen_llvm/src/llvm/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/gen_llvm/src/llvm/convert.rs b/crates/compiler/gen_llvm/src/llvm/convert.rs index cfd19b1c2f..90ad7a5682 100644 --- a/crates/compiler/gen_llvm/src/llvm/convert.rs +++ b/crates/compiler/gen_llvm/src/llvm/convert.rs @@ -263,7 +263,7 @@ fn alignment_type(context: &Context, alignment: u32) -> BasicTypeEnum { 2 => context.i16_type().into(), 4 => context.i32_type().into(), 8 => context.i64_type().into(), - 16 => context.i128_type().into(), + 16 => context.f128_type().into(), _ => unimplemented!("weird alignment: {alignment}"), } }