projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb496a3
)
Fix compile warning.
author
Daniel Dunbar
<daniel@zuster.org>
Fri, 17 Jul 2009 18:33:52 +0000
(18:33 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Fri, 17 Jul 2009 18:33:52 +0000
(18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76210
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index 7631e3cdb2d2fa77a6b6aaa983696da6bccc5bac..81f544b0e827b0fa45b94129f937215f6f5533e7 100644
(file)
--- 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) {