[llvm-commits] CVS: llvm/lib/Analysis/IPA/GlobalsModRef.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 23 17:23:08 PST 2005



Changes in directory llvm/lib/Analysis/IPA:

GlobalsModRef.cpp updated: 1.13 -> 1.14
---
Log message:

fix a compiler crash in runtime/libprofile


---
Diffs of the changes:  (+1 -1)

 GlobalsModRef.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff -u llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.13 llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.14
--- llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.13	Wed Mar 23 17:51:12 2005
+++ llvm/lib/Analysis/IPA/GlobalsModRef.cpp	Wed Mar 23 19:22:52 2005
@@ -280,7 +280,7 @@
           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






More information about the llvm-commits mailing list