mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Switch to using Simplified ConstantFP::get API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -636,15 +636,15 @@ bool BitcodeReader::ParseConstants() {
|
||||
if (Record.empty())
|
||||
return Error("Invalid FLOAT record");
|
||||
if (CurTy == Type::FloatTy)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(32, (uint32_t)Record[0])));
|
||||
V = ConstantFP::get(APFloat(APInt(32, (uint32_t)Record[0])));
|
||||
else if (CurTy == Type::DoubleTy)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(64, Record[0])));
|
||||
V = ConstantFP::get(APFloat(APInt(64, Record[0])));
|
||||
else if (CurTy == Type::X86_FP80Ty)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(80, 2, &Record[0])));
|
||||
V = ConstantFP::get(APFloat(APInt(80, 2, &Record[0])));
|
||||
else if (CurTy == Type::FP128Ty)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0]), true));
|
||||
V = ConstantFP::get(APFloat(APInt(128, 2, &Record[0]), true));
|
||||
else if (CurTy == Type::PPC_FP128Ty)
|
||||
V = ConstantFP::get(CurTy, APFloat(APInt(128, 2, &Record[0])));
|
||||
V = ConstantFP::get(APFloat(APInt(128, 2, &Record[0])));
|
||||
else
|
||||
V = UndefValue::get(CurTy);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user