diff options
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 7631e3c..81f544b 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -194,6 +194,7 @@ ConstantInt *ConstantInt::CreateTrueFalseVals(bool WhichOne) { // ConstantFP //===----------------------------------------------------------------------===// +#ifndef NDEBUG static const fltSemantics *TypeToFloatSemantics(const Type *Ty) { if (Ty == Type::FloatTy) return &APFloat::IEEEsingle; @@ -207,6 +208,7 @@ static const fltSemantics *TypeToFloatSemantics(const Type *Ty) { assert(Ty == Type::PPC_FP128Ty && "Unknown FP format"); return &APFloat::PPCDoubleDouble; } +#endif ConstantFP::ConstantFP(const Type *Ty, const APFloat& V) : Constant(Ty, ConstantFPVal, 0, 0), Val(V) { |