From 620740938336d0946d1e49a67f47887806ba1e2c Mon Sep 17 00:00:00 2001 From: Paul Osmialowski Date: Thu, 14 Dec 2023 23:26:48 +0000 Subject: [PATCH] flang2: fix the expected number of parameters for __pd_asin_1 This bug was hidden unnoticed for years, until the most recent changes in LLVM (LLVM-18 candidate) have introduced additional assertions in the loop vectorizer, and one of them is failing on wrongly declared functions like this one. Signed-off-by: Paul Osmialowski --- tools/flang2/flang2exe/iliutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/flang2/flang2exe/iliutil.cpp b/tools/flang2/flang2exe/iliutil.cpp index cf475eea236..c6f7ef3bdd8 100644 --- a/tools/flang2/flang2exe/iliutil.cpp +++ b/tools/flang2/flang2exe/iliutil.cpp @@ -6134,7 +6134,7 @@ addarth(ILI *ilip) case IL_DASIN: if (XBIT_NEW_MATH_NAMES) { - fname = make_math(MTH_asin, &funcsptr, 1, false, DT_DBLE, 2, DT_DBLE, + fname = make_math(MTH_asin, &funcsptr, 1, false, DT_DBLE, 1, DT_DBLE, DT_DBLE); ilix = ad_func(IL_dpfunc, IL_QJSR, fname, 1, op1); ilix = ad1altili(opc, op1, ilix);