From af45aa3e564f5a1774e3403d16c9479136ad7ce9 Mon Sep 17 00:00:00 2001 From: Tom Vijlbrief Date: Sun, 29 Jun 2025 12:13:06 +0200 Subject: [PATCH] Fix compile warning AVR InstPrinter --- llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp index 1e4b2e27a1837..df63b4448945e 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp @@ -100,7 +100,7 @@ const char *AVRInstPrinter::getPrettyRegisterName(MCRegister Reg, void AVRInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) { - const MCOperandInfo &MOI = this->MII.get(MI->getOpcode()).operands()[OpNo]; + const MCOperandInfo MOI = this->MII.get(MI->getOpcode()).operands()[OpNo]; if (MOI.RegClass == AVR::ZREGRegClassID) { // Special case for the Z register, which sometimes doesn't have an operand // in the MCInst.