[llvm] b73290b - Fix the -Wunused-variable warning.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 23:45:03 PDT 2020
Author: Haojian Wu
Date: 2020-04-28T08:44:15+02:00
New Revision: b73290be9fa413d8bc426512cdf4fa01bc005954
URL: https://github.com/llvm/llvm-project/commit/b73290be9fa413d8bc426512cdf4fa01bc005954
DIFF: https://github.com/llvm/llvm-project/commit/b73290be9fa413d8bc426512cdf4fa01bc005954.diff
LOG: Fix the -Wunused-variable warning.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp b/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
index ecf6f3a9409e..4c74e82cf041 100644
--- a/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
+++ b/llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
@@ -430,12 +430,11 @@ void PPCExpandISEL::populateBlocks(BlockISELList &BIL) {
// condition is true
MachineOperand &FalseValue = MI->getOperand(2); // Value to store if
// condition is false
- MachineOperand &ConditionRegister = MI->getOperand(3); // Condition
LLVM_DEBUG(dbgs() << "Dest: " << Dest << "\n");
LLVM_DEBUG(dbgs() << "TrueValue: " << TrueValue << "\n");
LLVM_DEBUG(dbgs() << "FalseValue: " << FalseValue << "\n");
- LLVM_DEBUG(dbgs() << "ConditionRegister: " << ConditionRegister << "\n");
+ LLVM_DEBUG(dbgs() << "ConditionRegister: " << MI->getOperand(3) << "\n");
// If the Dest Register and True Value Register are not the same one, we
// need the True Block.
More information about the llvm-commits
mailing list