[llvm] 40c288b - [Mips] Fix gcc -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=Off builds after D71028
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 16:41:17 PST 2019
Author: Fangrui Song
Date: 2019-12-13T16:41:08-08:00
New Revision: 40c288b75c1d9cc94d0409ac00b2421eb8a4c75b
URL: https://github.com/llvm/llvm-project/commit/40c288b75c1d9cc94d0409ac00b2421eb8a4c75b
DIFF: https://github.com/llvm/llvm-project/commit/40c288b75c1d9cc94d0409ac00b2421eb8a4c75b.diff
LOG: [Mips] Fix gcc -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=Off builds after D71028
Added:
Modified:
llvm/lib/Target/Mips/MipsExpandPseudo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Mips/MipsExpandPseudo.cpp b/llvm/lib/Target/Mips/MipsExpandPseudo.cpp
index dfefcc7a0765..b1abf4a33717 100644
--- a/llvm/lib/Target/Mips/MipsExpandPseudo.cpp
+++ b/llvm/lib/Target/Mips/MipsExpandPseudo.cpp
@@ -790,6 +790,7 @@ bool MipsExpandPseudo::expandAtomicBinOp(MachineBasicBlock &BB,
BuildMI(loopMBB, DL, TII->get(NOR), Scratch).addReg(ZERO).addReg(Scratch);
} else {
assert(IsOr && OR && "Unknown instruction for atomic pseudo expansion!");
+ (void)IsOr;
BuildMI(loopMBB, DL, TII->get(OR), Scratch).addReg(Incr).addReg(ZERO);
}
More information about the llvm-commits
mailing list