Changed per review comment.
authorDale Johannesen <dalej@apple.com>
Wed, 30 May 2007 00:32:01 +0000 (00:32 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 30 May 2007 00:32:01 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BranchFolding.cpp

index c34aeebe0ee07c5cc300e0bf0d854da87cf3cb63..9d8bada4baf2509f7cb25adc69d7afb1fe91c7d6 100644 (file)
@@ -420,9 +420,8 @@ static void FixTail(MachineBasicBlock* CurMBB, MachineBasicBlock *SuccBB,
   TII->InsertBranch(*CurMBB, SuccBB, NULL, std::vector<MachineOperand>());
 }
 
-static bool MergeCompare(std::pair<unsigned,MachineBasicBlock*> p,
-                         std::pair<unsigned,MachineBasicBlock*> q) {
-
+static bool MergeCompare(const std::pair<unsigned,MachineBasicBlock*> &p,
+                         const std::pair<unsigned,MachineBasicBlock*> &q) {
     if (p.first < q.first)
       return true;
      else if (p.first > q.first)