Skip to content

Commit 66959ff

Browse files
committed
[Analysis] Fix -Wunused-function in ConstantFolding.cpp (NFC)
/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp:1747:11: error: unused function 'GetConstantFoldFPValue128' [-Werror,-Wunused-function] Constant *GetConstantFoldFPValue128(float128 V, Type *Ty) { ^ 1 error generated.
1 parent d7d19a9 commit 66959ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ Constant *GetConstantFoldFPValue(double V, Type *Ty) {
17431743
llvm_unreachable("Can only constant fold half/float/double");
17441744
}
17451745

1746-
#if defined(HAS_IEE754_FLOAT128)
1746+
#if defined(HAS_IEE754_FLOAT128) && defined(HAS_LOGF128)
17471747
Constant *GetConstantFoldFPValue128(float128 V, Type *Ty) {
17481748
if (Ty->isFP128Ty())
17491749
return ConstantFP::get(Ty, V);

0 commit comments

Comments
 (0)