aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-17 18:33:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-17 18:33:52 +0000
commit847f4731d2af26449057b379c2238e9b1f12e8a9 (patch)
tree600c0e9fbff71da071c0e033babf2cf6d965d34c
parent6354c7c40d42974c9e07e27fc5e6e098275b428e (diff)
downloadexternal_llvm-847f4731d2af26449057b379c2238e9b1f12e8a9.zip
external_llvm-847f4731d2af26449057b379c2238e9b1f12e8a9.tar.gz
external_llvm-847f4731d2af26449057b379c2238e9b1f12e8a9.tar.bz2
Fix compile warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76210 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Constants.cpp2
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) {