Skip to content

Commit 660b3a0

Browse files
committed
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 <pawel.osmialowski@arm.com>
1 parent 7f17301 commit 660b3a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/flang2/flang2exe/iliutil.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,8 +6134,7 @@ addarth(ILI *ilip)
61346134

61356135
case IL_DASIN:
61366136
if (XBIT_NEW_MATH_NAMES) {
6137-
fname = make_math(MTH_asin, &funcsptr, 1, false, DT_DBLE, 2, DT_DBLE,
6138-
DT_DBLE);
6137+
fname = make_math(MTH_asin, &funcsptr, 1, false, DT_DBLE, 1, DT_DBLE);
61396138
ilix = ad_func(IL_dpfunc, IL_QJSR, fname, 1, op1);
61406139
ilix = ad1altili(opc, op1, ilix);
61416140
return ilix;

0 commit comments

Comments
 (0)