mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 23:00:15 +00:00
Drop const in front of iterator
David Blaikie: "find returns an iterator by value, so it's just added complexity/strangeness to then use reference lifetime extension to give it the same semantics as if you'd used a value type instead of a reference type." llvm-svn: 238294
This commit is contained in:
parent
aa8020752e
commit
57411e3fc6
@ -2021,7 +2021,7 @@ void Scop::buildScop(TempScop &tempScop, const Region &CurRegion,
|
||||
}
|
||||
|
||||
ScopStmt *Scop::getStmtForBasicBlock(BasicBlock *BB) const {
|
||||
const auto StmtMapIt = StmtMap.find(BB);
|
||||
auto StmtMapIt = StmtMap.find(BB);
|
||||
if (StmtMapIt == StmtMap.end())
|
||||
return nullptr;
|
||||
return StmtMapIt->second;
|
||||
|
Loading…
Reference in New Issue
Block a user