[llvm] e2ed3fd - [AVR][NFC] Eliminate warning 'unused variable'
Ben Shi via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 23:15:47 PDT 2022
Author: Ben Shi
Date: 2022-05-06T06:15:28Z
New Revision: e2ed3fd71e08ac50ca326c79f31247e7e4a16b7b
URL: https://github.com/llvm/llvm-project/commit/e2ed3fd71e08ac50ca326c79f31247e7e4a16b7b
DIFF: https://github.com/llvm/llvm-project/commit/e2ed3fd71e08ac50ca326c79f31247e7e4a16b7b.diff
LOG: [AVR][NFC] Eliminate warning 'unused variable'
Reviewed By: Patryk27, aykevl
Differential Revision: https://reviews.llvm.org/D125066
Added:
Modified:
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
index 738c6d328f80e..a9dc9af819e6b 100644
--- a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
@@ -1219,6 +1219,7 @@ bool AVRExpandPseudo::expand<AVR::STDSPQRr>(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<AVR::STDWSPQRr>(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);
More information about the llvm-commits
mailing list