diff options
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index c34aeebe0e..9d8bada4ba 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -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) |