From e2ed3fd71e08ac50ca326c79f31247e7e4a16b7b Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Fri, 6 May 2022 06:10:37 +0000 Subject: [PATCH] [AVR][NFC] Eliminate warning 'unused variable' Reviewed By: Patryk27, aykevl Differential Revision: https://reviews.llvm.org/D125066 --- llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp index 738c6d328f80..a9dc9af819e6 100644 --- a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp +++ b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp @@ -1219,6 +1219,7 @@ bool AVRExpandPseudo::expand(Block &MBB, BlockIt MBBI) { assert(STI.getFrameLowering()->hasReservedCallFrame(MF) && "unexpected STDSPQRr pseudo instruction"); + (void)STI; MI.setDesc(TII->get(AVR::STDPtrQRr)); MI.getOperand(0).setReg(AVR::R29R28); @@ -1237,6 +1238,7 @@ bool AVRExpandPseudo::expand(Block &MBB, BlockIt MBBI) { assert(STI.getFrameLowering()->hasReservedCallFrame(MF) && "unexpected STDWSPQRr pseudo instruction"); + (void)STI; MI.setDesc(TII->get(AVR::STDWPtrQRr)); MI.getOperand(0).setReg(AVR::R29R28);