[llvm] r332441 - Fix unused variable warning in r332437.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 02:10:04 PDT 2018
Author: courbet
Date: Wed May 16 02:10:04 2018
New Revision: 332441
URL: http://llvm.org/viewvc/llvm-project?rev=332441&view=rev
Log:
Fix unused variable warning in r332437.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp?rev=332441&r1=332440&r2=332441&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp Wed May 16 02:10:04 2018
@@ -47,9 +47,9 @@ void Analysis::printInstructionRow(const
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;
More information about the llvm-commits
mailing list