diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-11 20:58:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-11 20:58:19 +0000 |
commit | c418bf3dd593b5b2fe2f978930f6d0d6b17e344e (patch) | |
tree | 5dee06a8e718f8d3340454f695d3e6ba79acb1dc /lib/Analysis/LoadValueNumbering.cpp | |
parent | 78d60458d558877a5bf7e326511e302bcf75b8ee (diff) |
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 'lib/Analysis/LoadValueNumbering.cpp')
-rw-r--r-- | lib/Analysis/LoadValueNumbering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp index 2414d33863..f99ebb4a83 100644 --- a/lib/Analysis/LoadValueNumbering.cpp +++ b/lib/Analysis/LoadValueNumbering.cpp @@ -117,9 +117,9 @@ static bool isPathTransparentTo(BasicBlock *CurBlock, BasicBlock *Dom, // Check whether this block is known transparent or not. std::map<BasicBlock*, bool>::iterator TBI = - TransparentBlocks.lower_bound(CurBlock); + TransparentBlocks.find(CurBlock); - if (TBI == TransparentBlocks.end() || TBI->first != CurBlock) { + if (TBI == TransparentBlocks.end()) { // If this basic block can modify the memory location, then the path is not // transparent! if (AA.canBasicBlockModify(*CurBlock, Ptr, Size)) { |