mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Fix compile warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb496a358e
commit
d75ec23ab7
@ -194,6 +194,7 @@ ConstantInt *ConstantInt::CreateTrueFalseVals(bool WhichOne) {
|
|||||||
// ConstantFP
|
// ConstantFP
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static const fltSemantics *TypeToFloatSemantics(const Type *Ty) {
|
static const fltSemantics *TypeToFloatSemantics(const Type *Ty) {
|
||||||
if (Ty == Type::FloatTy)
|
if (Ty == Type::FloatTy)
|
||||||
return &APFloat::IEEEsingle;
|
return &APFloat::IEEEsingle;
|
||||||
@ -207,6 +208,7 @@ static const fltSemantics *TypeToFloatSemantics(const Type *Ty) {
|
|||||||
assert(Ty == Type::PPC_FP128Ty && "Unknown FP format");
|
assert(Ty == Type::PPC_FP128Ty && "Unknown FP format");
|
||||||
return &APFloat::PPCDoubleDouble;
|
return &APFloat::PPCDoubleDouble;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ConstantFP::ConstantFP(const Type *Ty, const APFloat& V)
|
ConstantFP::ConstantFP(const Type *Ty, const APFloat& V)
|
||||||
: Constant(Ty, ConstantFPVal, 0, 0), Val(V) {
|
: Constant(Ty, ConstantFPVal, 0, 0), Val(V) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user