Fix unused variable warning in release mode. NFC.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Tue, 6 Feb 2018 09:53:02 +0000 (09:53 +0000)
committerAlexander Ivchenko <alexander.ivchenko@intel.com>
Tue, 6 Feb 2018 09:53:02 +0000 (09:53 +0000)
llvm-svn: 324330

llvm/lib/CodeGen/MachineCombiner.cpp

index b9ba5b1..7185454 100644 (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;