diff --git a/spec/compiler/codegen/c_abi/c_abi_spec.cr b/spec/compiler/codegen/c_abi/c_abi_spec.cr index 1a772b897ae2..8250abffa6ec 100644 --- a/spec/compiler/codegen/c_abi/c_abi_spec.cr +++ b/spec/compiler/codegen/c_abi/c_abi_spec.cr @@ -55,7 +55,7 @@ describe "Code gen: C ABI" do ), &.to_i.should eq(3)) end - it "passes struct bigger than128 bits (for real)" do + it "passes struct bigger than 128 bits (for real)" do test_c( %( struct s { diff --git a/spec/std/llvm/aarch64_spec.cr b/spec/std/llvm/aarch64_spec.cr index ee30468f0d26..caaa9d8e0ff1 100644 --- a/spec/std/llvm/aarch64_spec.cr +++ b/spec/std/llvm/aarch64_spec.cr @@ -140,7 +140,7 @@ class LLVM::ABI info = abi.abi_info(arg_types, return_type, true, ctx) info.arg_types.size.should eq(1) - info.arg_types[0].should eq(ArgType.indirect(str, Attribute::ByVal)) + info.arg_types[0].should eq(ArgType.indirect(str, nil)) info.return_type.should eq(ArgType.indirect(str, Attribute::StructRet)) end end diff --git a/src/llvm/abi/aarch64.cr b/src/llvm/abi/aarch64.cr index 52cf84ae4b82..14a576d415e8 100644 --- a/src/llvm/abi/aarch64.cr +++ b/src/llvm/abi/aarch64.cr @@ -136,7 +136,7 @@ class LLVM::ABI::AArch64 < LLVM::ABI end ArgType.direct(aty, cast) else - ArgType.indirect(aty, LLVM::Attribute::ByVal) + ArgType.indirect(aty, nil) end end end