summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-10 01:36:20 +0000
committerDan Gohman <gohman@apple.com>2009-11-10 01:36:20 +0000
commit48079d4bf579539ca8a5ade6ad25c6478efec6d0 (patch)
treef008dd078f625ace5a37a1db47ad89057de8e5ec /llvm/lib
parent0d401124d12247d042367c6d577789fe29065934 (diff)
downloadbcm5719-llvm-48079d4bf579539ca8a5ade6ad25c6478efec6d0.tar.gz
bcm5719-llvm-48079d4bf579539ca8a5ade6ad25c6478efec6d0.zip
Minor code simplification.
llvm-svn: 86641
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index baea9642d4f..b094eefb302 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -600,7 +600,7 @@ bool BranchFolder::TryMergeBlocks(MachineBasicBlock *SuccBB,
// Walk through equivalence sets looking for actual exact matches.
while (MergePotentials.size() > 1) {
- unsigned CurHash = prior(MergePotentials.end())->first;
+ unsigned CurHash = MergePotentials.back().first;
// Build SameTails, identifying the set of blocks with this hash code
// and with the maximum number of instructions in common.
OpenPOWER on IntegriCloud