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:
Tobias Grosser 2015-05-27 06:51:34 +00:00
parent aa8020752e
commit 57411e3fc6

View File

@ -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;