diff options
author | Jie Fu <jiefu@tencent.com> | 2024-06-18 20:49:29 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2024-06-18 20:49:29 +0800 |
commit | e42a4c70a112c1c0f07ccb8b57b4fda4cfa11b49 (patch) | |
tree | fba0c8a98f2da4fbd328137139d0476e49ffa431 /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 79e668f9700cc8321e7ee0eecd3b82c108aea6de (diff) | |
download | llvm-e42a4c70a112c1c0f07ccb8b57b4fda4cfa11b49.zip llvm-e42a4c70a112c1c0f07ccb8b57b4fda4cfa11b49.tar.gz llvm-e42a4c70a112c1c0f07ccb8b57b4fda4cfa11b49.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 4087cf3..7a4bc48 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -1784,6 +1784,7 @@ Constant *ConstantFoldFP(double (*NativeFP)(double), const APFloat &V, } #if defined(HAS_IEE754_FLOAT128) +LLVM_ATTRIBUTE_UNUSED Constant *ConstantFoldFP128(long double (*NativeFP)(long double), const APFloat &V, Type *Ty) { llvm_fenv_clearexcept(); |