summaryrefslogtreecommitdiffstats
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
commite974dc3eb131ef2771bd4fee2114e414ad88a35a (patch)
treea044ce2721136618012e495400077b7f108b72b3
parentacd2f4dcead4a6aeef0636c107f3345c9617263b (diff)
downloadbcm5719-llvm-e974dc3eb131ef2771bd4fee2114e414ad88a35a.tar.gz
bcm5719-llvm-e974dc3eb131ef2771bd4fee2114e414ad88a35a.zip
Fix compile warning.
llvm-svn: 76210
-rw-r--r--llvm/lib/VMCore/Constants.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index 7631e3cdb2d..81f544b0e82 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud