mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Use a range loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2360e51fd0
commit
2413bf3004
@ -411,10 +411,8 @@ void GlobalsModRef::AnalyzeCallGraph(CallGraph &CG, Module &M) {
|
||||
FunctionEffect |= CalleeFR->FunctionEffect;
|
||||
|
||||
// Incorporate callee's effects on globals into our info.
|
||||
for (std::map<const GlobalValue*, unsigned>::iterator GI =
|
||||
CalleeFR->GlobalInfo.begin(), E = CalleeFR->GlobalInfo.end();
|
||||
GI != E; ++GI)
|
||||
FR.GlobalInfo[GI->first] |= GI->second;
|
||||
for (const auto &G : CalleeFR->GlobalInfo)
|
||||
FR.GlobalInfo[G.first] |= G.second;
|
||||
FR.MayReadAnyGlobal |= CalleeFR->MayReadAnyGlobal;
|
||||
} else {
|
||||
// Can't say anything about it. However, if it is inside our SCC,
|
||||
|
Loading…
x
Reference in New Issue
Block a user