Skip to content

Commit e42a4c7

Browse files
committed
[Analysis] Fix -Wunused-function in ConstantFolding.cpp (NFC)
/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp:1787:11: error: unused function 'ConstantFoldFP128' [-Werror,-Wunused-function] Constant *ConstantFoldFP128(long double (*NativeFP)(long double), ^ 1 error generated.
1 parent 79e668f commit e42a4c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,7 @@ Constant *ConstantFoldFP(double (*NativeFP)(double), const APFloat &V,
17841784
}
17851785

17861786
#if defined(HAS_IEE754_FLOAT128)
1787+
LLVM_ATTRIBUTE_UNUSED
17871788
Constant *ConstantFoldFP128(long double (*NativeFP)(long double),
17881789
const APFloat &V, Type *Ty) {
17891790
llvm_fenv_clearexcept();

0 commit comments

Comments
 (0)