From 1b57f6e0926ebd4903336d0dc1abc8fdd14d556a Mon Sep 17 00:00:00 2001 From: kalsprite Date: Fri, 14 Aug 2026 19:34:49 -0700 Subject: [PATCH] remove cpp17 feature --- src/llvm_abi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index eaafdae24..b4c866855 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -2192,10 +2192,12 @@ namespace lbAbiArm32 { } else { i64 sz = lb_sizeof(t); i64 a = lb_alignof(t); + + LLVMTypeRef hfa_coerce = nullptr; // Added to support hard floats included in the playdates cortex-m7. if (calling_convention == ProcCC_CDecl && selected_subtarget == Subtarget_Playdate) { args[i] = lb_arg_type_direct(t); - } else if (LLVMTypeRef hfa_coerce = nullptr; is_hfa(c, t, srcs[i], calling_convention, &hfa_coerce)) { + } else if (is_hfa(c, t, srcs[i], calling_convention, &hfa_coerce)) { args[i] = lb_arg_type_direct(t, hfa_coerce, nullptr, nullptr); } else if (is_calling_convention_odin(calling_convention) && sz > 8) { // Minor change to improve performance using the Odin calling conventions