Skip to content

Commit c922e07

Browse files
committed
[llvm-exegesis] Fix unused variable warning in release mode.
llvm-svn: 332455
1 parent 344b099 commit c922e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-exegesis/lib/Analysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ void Analysis::printInstructionRow(const size_t ClusterId, const size_t PointId,
4545
OS << kCsvSep;
4646
const auto OpcodeIt = MnemonicToOpcode_.find(Point.Key.OpcodeName);
4747
if (OpcodeIt != MnemonicToOpcode_.end()) {
48-
const auto &SchedModel = SubtargetInfo_->getSchedModel();
4948
const unsigned SchedClassId = InstrInfo_->get(OpcodeIt->second).getSchedClass();
5049
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
50+
const auto &SchedModel = SubtargetInfo_->getSchedModel();
5151
const llvm::MCSchedClassDesc *const SCDesc =
5252
SchedModel.getSchedClassDesc(SchedClassId);
5353
writeCsvEscaped(OS, SCDesc->Name);

0 commit comments

Comments
 (0)