From 44008c59188ba61aeacfd8be049e3be548ffcea4 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 30 May 2007 00:32:01 +0000 Subject: [PATCH] Changed per review comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37355 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/BranchFolding.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index c34aeebe0ee..9d8bada4baf 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()); } -static bool MergeCompare(std::pair p, - std::pair q) { - +static bool MergeCompare(const std::pair &p, + const std::pair &q) { if (p.first < q.first) return true; else if (p.first > q.first)