summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-24 01:22:52 +0000
committerChris Lattner <sabre@nondot.org>2005-03-24 01:22:52 +0000
commitc4417f98e565d136d9a11766f7d0fbd872ca5b9d (patch)
tree211aadb5069684ea0c95dc9b6f39bee4946d6cad
parentf5eaf3c62c7b2f2da1f85ac411c4f13bcbf131f1 (diff)
fix a compiler crash in runtime/libprofile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20799 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/IPA/GlobalsModRef.cpp2
1 files changed, 1 insertions, 1 deletions
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<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