Skip to content

Commit

Permalink
flang2: fix the expected number of parameters for __pd_asin_1
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pawosm-arm committed Jan 15, 2024
1 parent 7f17301 commit 660b3a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/flang2/flang2exe/iliutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 660b3a0

Please sign in to comment.