Fix compile warning.

llvm-svn: 76210
This commit is contained in:
Daniel Dunbar 2009-07-17 18:33:52 +00:00
parent acd2f4dcea
commit e974dc3eb1
1 changed files with 2 additions and 0 deletions

View File

@ -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) {