From 660b3a0fbc939e3d83126b53cca8fc07d77a684e 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/flang2/flang2exe/iliutil.cpp b/tools/flang2/flang2exe/iliutil.cpp index cf475eea236..44a951c2582 100644 --- a/tools/flang2/flang2exe/iliutil.cpp +++ b/tools/flang2/flang2exe/iliutil.cpp @@ -6134,8 +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, - DT_DBLE); + fname = make_math(MTH_asin, &funcsptr, 1, false, DT_DBLE, 1, DT_DBLE); ilix = ad_func(IL_dpfunc, IL_QJSR, fname, 1, op1); ilix = ad1altili(opc, op1, ilix); return ilix;