diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-10 01:36:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-10 01:36:20 +0000 |
commit | 9b3225207423344cbac9fa367c077055d0cdeaf9 (patch) | |
tree | 85e63f3af1774f453b20c8eb7491fbea5ae93a79 /lib/CodeGen/BranchFolding.cpp | |
parent | 1439df1156885faa7395fba6671731fa12ef6f31 (diff) | |
download | external_llvm-9b3225207423344cbac9fa367c077055d0cdeaf9.zip external_llvm-9b3225207423344cbac9fa367c077055d0cdeaf9.tar.gz external_llvm-9b3225207423344cbac9fa367c077055d0cdeaf9.tar.bz2 |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index baea964..b094eef 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/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. |