fix a compiler crash in runtime/libprofile

llvm-svn: 20799
This commit is contained in:
Chris Lattner 2005-03-24 01:22:52 +00:00
parent 6a3f5fd623
commit 85a1d92323
1 changed files with 1 additions and 1 deletions

View File

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