From d14ad078c698bf32371b5bc50abcf200b6253a0c Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 30 May 2007 00:32:01 +0000 Subject: Changed per review comment. llvm-svn: 37355 --- llvm/lib/CodeGen/BranchFolding.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/BranchFolding.cpp') diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index c34aeebe0ee..9d8bada4baf 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/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) -- cgit v1.2.3