store MC FP immediates as a double instead of as an APFloat, thus avoiding an
unnecessary dtor for MCOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114064 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMMCInstLower.cpp b/lib/Target/ARM/ARMMCInstLower.cpp
index b26d327..8774010 100644
--- a/lib/Target/ARM/ARMMCInstLower.cpp
+++ b/lib/Target/ARM/ARMMCInstLower.cpp
@@ -157,7 +157,8 @@
MO.getBlockAddress()));
break;
case MachineOperand::MO_FPImmediate:
- MCOp = MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF());
+ MCOp =
+ MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF().convertToDouble());
break;
}