Skip to content

Commit

Permalink
Fix unused variable warning in r332437.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332441 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
legrosbuffle committed May 16, 2018
1 parent 9e38e3e commit 5ae1438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/llvm-exegesis/lib/Analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ void Analysis::printInstructionRow(const size_t ClusterId, const size_t PointId,
if (OpcodeIt != MnemonicToOpcode_.end()) {
const auto &SchedModel = SubtargetInfo_->getSchedModel();
const unsigned SchedClassId = InstrInfo_->get(OpcodeIt->second).getSchedClass();
const llvm::MCSchedClassDesc *const SCDesc =
SchedModel.getSchedClassDesc(SchedClassId);
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
const llvm::MCSchedClassDesc *const SCDesc =
SchedModel.getSchedClassDesc(SchedClassId);
writeCsvEscaped(OS, SCDesc->Name);
#else
OS << SchedClassId;
Expand Down

0 comments on commit 5ae1438

Please sign in to comment.