aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-05-30 00:32:01 +0000
committerDale Johannesen <dalej@apple.com>2007-05-30 00:32:01 +0000
commit44008c59188ba61aeacfd8be049e3be548ffcea4 (patch)
treea0cb333b278802f411d90eb7fd6a108de45e38a4 /lib/CodeGen/BranchFolding.cpp
parent95ef406e0f2da0197f8b46849319c07e9bea1e55 (diff)
Changed per review comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp5
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)