diff options
author | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
commit | cb181bb203085f863ee89eabdb75eb0778c5e2f5 (patch) | |
tree | 473ac5ebf743880303bd928f5be2dd2123b2bf7c /llvm/lib/CodeGen | |
parent | 72d9912b08c5492cc2eaff9a666e45718f1dea07 (diff) | |
download | bcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.tar.gz bcm5719-llvm-cb181bb203085f863ee89eabdb75eb0778c5e2f5.zip |
Silence unused variable warnings.
llvm-svn: 59841
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LowerSubregs.cpp | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index a51291298b9..2a979e19eb5 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -125,6 +125,7 @@ void LiveIntervals::computeNumbering() { I != E; ++I) { bool inserted = mi2iMap_.insert(std::make_pair(I, MIIndex)).second; assert(inserted && "multiple MachineInstr -> index mappings"); + inserted = true; i2miMap_.push_back(I); MIIndex += InstrSlots::NUM; FunctionSize++; diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index 9fe42f644d6..ecfebc55114 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -678,6 +678,7 @@ void LiveVariables::removeVirtualRegistersKilled(MachineInstr *MI) { if (TargetRegisterInfo::isVirtualRegister(Reg)) { bool removed = getVarInfo(Reg).removeKill(MI); assert(removed && "kill not in register's VarInfo?"); + removed = true; } } } diff --git a/llvm/lib/CodeGen/LowerSubregs.cpp b/llvm/lib/CodeGen/LowerSubregs.cpp index 6ee955d3796..6d7c5ccee60 100644 --- a/llvm/lib/CodeGen/LowerSubregs.cpp +++ b/llvm/lib/CodeGen/LowerSubregs.cpp @@ -152,7 +152,9 @@ bool LowerSubregsInstructionPass::LowerInsert(MachineInstr *MI) { MI->getOperand(3).isImm() && "Invalid insert_subreg"); unsigned DstReg = MI->getOperand(0).getReg(); +#ifndef NDEBUG unsigned SrcReg = MI->getOperand(1).getReg(); +#endif unsigned InsReg = MI->getOperand(2).getReg(); unsigned SubIdx = MI->getOperand(3).getImm(); |