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 | 3707f1daba7462cb8105d191b4d091585abfbfbd (patch) | |
| tree | 9c15fc307f80a4e5cc304b912d90e79ccc7b102c /llvm/lib/Analysis/LoadValueNumbering.cpp | |
| parent | aced3ad4b8cdc5f36028ffc5273f60ce736268c3 (diff) | |
| download | bcm5719-llvm-3707f1daba7462cb8105d191b4d091585abfbfbd.tar.gz bcm5719-llvm-3707f1daba7462cb8105d191b4d091585abfbfbd.zip | |
Use find instead of lower_bound.
llvm-svn: 53474
Diffstat (limited to 'llvm/lib/Analysis/LoadValueNumbering.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoadValueNumbering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoadValueNumbering.cpp b/llvm/lib/Analysis/LoadValueNumbering.cpp index 2414d33863d..f99ebb4a83d 100644 --- a/llvm/lib/Analysis/LoadValueNumbering.cpp +++ b/llvm/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)) { |

