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 <pawel.osmialowski@arm.com>
  • Loading branch information
pawosm-arm committed Dec 14, 2023
1 parent 4df6dac commit 6207409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/flang2/flang2exe/iliutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6207409

Please sign in to comment.