[NFC] fix build failure (#100993)
authorChen Zheng <czhengsz@cn.ibm.com>
Tue, 30 Jul 2024 01:02:07 +0000 (09:02 +0800)
committerTobias Hieta <tobias@hieta.se>
Tue, 29 Oct 2024 08:58:55 +0000 (09:58 +0100)
Fix the build failure caused by
https://github.com/llvm/llvm-project/pull/94944

Fixes https://github.com/llvm/llvm-project/issues/100296

(cherry picked from commit 40b4fd7a3e81d32b29364a1b15337bcf817659c0)

llvm/lib/Analysis/ConstantFolding.cpp

index df75745645e04935b8288312ed26531a19345a6c..ff30fece5fce93e336c243619ca17afa38456247 100644 (file)
@@ -1784,8 +1784,8 @@ Constant *ConstantFoldFP(double (*NativeFP)(double), const APFloat &V,
 }
 
 #if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128)
-Constant *ConstantFoldFP128(long double (*NativeFP)(long double),
-                            const APFloat &V, Type *Ty) {
+Constant *ConstantFoldFP128(float128 (*NativeFP)(float128), const APFloat &V,
+                            Type *Ty) {
   llvm_fenv_clearexcept();
   float128 Result = NativeFP(V.convertToQuad());
   if (llvm_fenv_testexcept()) {