forked from OSchip/llvm-project
fix a compiler crash in runtime/libprofile
llvm-svn: 20799
This commit is contained in:
parent
6a3f5fd623
commit
85a1d92323
|
@ -280,7 +280,7 @@ void GlobalsModRef::AnalyzeSCC(std::vector<CallGraphNode *> &SCC) {
|
|||
ModRefBehavior MRB =
|
||||
AliasAnalysis::getModRefBehavior(Callee, CallSite());
|
||||
if (MRB != DoesNotAccessMemory) {
|
||||
if (MRB == OnlyReadsMemory) {
|
||||
if (MRB == OnlyReadsMemory && CalleeFR) {
|
||||
// This reads memory, but we don't know what, just say that it
|
||||
// reads all globals.
|
||||
for (std::map<GlobalValue*, unsigned>::iterator
|
||||
|
|
Loading…
Reference in New Issue