mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 05:31:37 +00:00
Add needed braces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7754f85885
commit
717082b9bd
@ -101,13 +101,14 @@ void llvm::LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
|||||||
case MachineOperand::MO_BlockAddress:
|
case MachineOperand::MO_BlockAddress:
|
||||||
MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP);
|
MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP);
|
||||||
break;
|
break;
|
||||||
case MachineOperand::MO_FPImmediate:
|
case MachineOperand::MO_FPImmediate: {
|
||||||
APFloat Val = MO.getFPImm()->getValueAPF();
|
APFloat Val = MO.getFPImm()->getValueAPF();
|
||||||
bool ignored;
|
bool ignored;
|
||||||
Val.convert(APFloat::IEEEdouble, APFloat::rmTowardZero, &ignored);
|
Val.convert(APFloat::IEEEdouble, APFloat::rmTowardZero, &ignored);
|
||||||
MCOp = MCOperand::CreateFPImm(Val.convertToDouble());
|
MCOp = MCOperand::CreateFPImm(Val.convertToDouble());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
OutMI.addOperand(MCOp);
|
OutMI.addOperand(MCOp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user