summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd14ad078c698bf32371b5bc50abcf200b6253a0c (patch)
tree2d226480b03990d5ab4d9419f5342bbb6a79c56d /llvm/lib/CodeGen/BranchFolding.cpp
parenta69ebdbebc9a4c53f7172bd084682b6a299594ef (diff)
downloadbcm5719-llvm-d14ad078c698bf32371b5bc50abcf200b6253a0c.tar.gz
bcm5719-llvm-d14ad078c698bf32371b5bc50abcf200b6253a0c.zip
Changed per review comment.
llvm-svn: 37355
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp5
1 files changed, 2 insertions, 3 deletions
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<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)
OpenPOWER on IntegriCloud