From: Dale Johannesen Date: Wed, 30 May 2007 00:32:01 +0000 (+0000) Subject: Changed per review comment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44008c59188ba61aeacfd8be049e3be548ffcea4;p=oota-llvm.git Changed per review comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37355 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)