[PATCH] D125066: [AVR][NFC] Eliminate warning 'unused variable'
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 23:12:04 PDT 2022
benshi001 updated this revision to Diff 427531.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125066/new/
https://reviews.llvm.org/D125066
Files:
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
Index: llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
===================================================================
--- llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
+++ llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
@@ -1219,6 +1219,7 @@
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 @@
assert(STI.getFrameLowering()->hasReservedCallFrame(MF) &&
"unexpected STDWSPQRr pseudo instruction");
+ (void)STI;
MI.setDesc(TII->get(AVR::STDWPtrQRr));
MI.getOperand(0).setReg(AVR::R29R28);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125066.427531.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/3757cb0a/attachment.bin>
More information about the llvm-commits
mailing list