From: Chris Lattner Date: Thu, 24 Mar 2005 01:22:52 +0000 (+0000) Subject: fix a compiler crash in runtime/libprofile X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c4417f98e565d136d9a11766f7d0fbd872ca5b9d;p=oota-llvm.git fix a compiler crash in runtime/libprofile git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20799 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp index d08c2583b9f..5a2f921ebf4 100644 --- a/lib/Analysis/IPA/GlobalsModRef.cpp +++ b/lib/Analysis/IPA/GlobalsModRef.cpp @@ -280,7 +280,7 @@ void GlobalsModRef::AnalyzeSCC(std::vector &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::iterator