aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/LoopInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-11 20:58:19 +0000
committerDan Gohman <gohman@apple.com>2008-07-11 20:58:19 +0000
commitc418bf3dd593b5b2fe2f978930f6d0d6b17e344e (patch)
tree5dee06a8e718f8d3340454f695d3e6ba79acb1dc /include/llvm/Analysis/LoopInfo.h
parent78d60458d558877a5bf7e326511e302bcf75b8ee (diff)
downloadexternal_llvm-c418bf3dd593b5b2fe2f978930f6d0d6b17e344e.zip
external_llvm-c418bf3dd593b5b2fe2f978930f6d0d6b17e344e.tar.gz
external_llvm-c418bf3dd593b5b2fe2f978930f6d0d6b17e344e.tar.bz2
Use find instead of lower_bound.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopInfo.h')
-rw-r--r--include/llvm/Analysis/LoopInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index ff2c3ca..e22f22f 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -823,8 +823,8 @@ public:
for (typename std::vector<BlockT*>::iterator I = L->Blocks.begin(),
E = L->Blocks.end(); I != E; ++I) {
typename std::map<BlockT*, LoopBase<BlockT>*>::iterator BBMI =
- BBMap.lower_bound(*I);
- if (BBMI == BBMap.end() || BBMI->first != *I) // Not in map yet...
+ BBMap.find(*I);
+ if (BBMI == BBMap.end()) // Not in map yet...
BBMap.insert(BBMI, std::make_pair(*I, L)); // Must be at this level
}