mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Use find instead of lower_bound.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user