From aa7c85ca71859aab15bdf1e6dc1ea3a5aa5d1e28 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 06:52:15 +0800 Subject: [Support] Split APInt and APFloat ownership --- backend/lib/CodeGen/MIRPrinter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/lib/CodeGen/MIRPrinter.cpp') diff --git a/backend/lib/CodeGen/MIRPrinter.cpp b/backend/lib/CodeGen/MIRPrinter.cpp index d510c83..ea201b9 100644 --- a/backend/lib/CodeGen/MIRPrinter.cpp +++ b/backend/lib/CodeGen/MIRPrinter.cpp @@ -2249,7 +2249,7 @@ Expected BodyPrinter::printOperand(const MachineOperand &Operand, bool IsE Output.append(std::to_string(*Operand.getIf())); return {}; case MachineOperand::Kind::IntegerImmediate: { - const IntegerImmediate &Value = Operand.getIf()->Value; + const APInt &Value = Operand.getIf()->Value; Output.push_back('i'); Output.append(std::to_string(Value.bitWidth())); Output.push_back(' '); @@ -2260,7 +2260,7 @@ Expected BodyPrinter::printOperand(const MachineOperand &Operand, bool IsE return {}; } case MachineOperand::Kind::FloatingImmediate: { - const FloatingPointBits &Bits = Operand.getIf()->Bits; + const APFloat &Bits = Operand.getIf()->Bits; auto Constant = GenericConstantData::floating(Bits); if (!Constant) return std::unexpected(Constant.error()); -- cgit v1.2.3