[llvm] 61d3a3a - AVRExpandPseudoInsts.cpp: Fix a warning. [-Wunused-but-set-variable]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 29 05:05:54 PDT 2022
Author: NAKAMURA Takumi
Date: 2022-04-29T21:01:47+09:00
New Revision: 61d3a3afe26fd49353d9fd37d0e7817a13c28659
URL: https://github.com/llvm/llvm-project/commit/61d3a3afe26fd49353d9fd37d0e7817a13c28659
DIFF: https://github.com/llvm/llvm-project/commit/61d3a3afe26fd49353d9fd37d0e7817a13c28659.diff
LOG: AVRExpandPseudoInsts.cpp: Fix a warning. [-Wunused-but-set-variable]
It has been enabled since llvmorg-15-init-5683-g2af845a6519c, aka D122271.
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 22f91f98a1644..2839ffab47076 100644
--- a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
@@ -141,6 +141,7 @@ bool AVRExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
// Continue expanding the block until all pseudos are expanded.
do {
assert(ExpandCount < 10 && "pseudo expand limit reached");
+ (void)ExpandCount;
bool BlockModified = expandMBB(MBB);
Modified |= BlockModified;
More information about the llvm-commits
mailing list