Fix unused variable warning in release mode. NFC.

llvm-svn: 324330
This commit is contained in:
Alexander Ivchenko 2018-02-06 09:53:02 +00:00
parent 3b8e00c5e0
commit 6805004cb1
1 changed files with 1 additions and 0 deletions

View File

@ -448,6 +448,7 @@ void MachineCombiner::verifyPatternOrder(
MachineBasicBlock *MBB, MachineInstr &Root,
SmallVector<MachineCombinerPattern, 16> &Patterns) {
long PrevLatencyDiff = std::numeric_limits<long>::max();
(void)PrevLatencyDiff; // Variable is used in assert only.
for (auto P : Patterns) {
SmallVector<MachineInstr *, 16> InsInstrs;
SmallVector<MachineInstr *, 16> DelInstrs;