From b6ff60930a0a670f4feda5688d2b156f3775e434 Mon Sep 17 00:00:00 2001 From: usamoi Date: Mon, 11 Dec 2023 21:11:43 +0800 Subject: [PATCH] prevent panic when compiling aarch64 vectorcall functions --- bindgen/ir/function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bindgen/ir/function.rs b/bindgen/ir/function.rs index 5bfb70eff1..6342758f9f 100644 --- a/bindgen/ir/function.rs +++ b/bindgen/ir/function.rs @@ -303,6 +303,7 @@ fn get_abi(cc: CXCallingConv) -> ClangAbi { CXCallingConv_X86VectorCall => ClangAbi::Known(Abi::Vectorcall), CXCallingConv_AAPCS => ClangAbi::Known(Abi::Aapcs), CXCallingConv_X86_64Win64 => ClangAbi::Known(Abi::Win64), + CXCallingConv_AArch64VectorCall => ClangAbi::Known(Abi::Vectorcall), other => ClangAbi::Unknown(other), } }