mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
fix a compiler crash in runtime/libprofile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -280,7 +280,7 @@ void GlobalsModRef::AnalyzeSCC(std::vector<CallGraphNode *> &SCC) {
|
|||||||
ModRefBehavior MRB =
|
ModRefBehavior MRB =
|
||||||
AliasAnalysis::getModRefBehavior(Callee, CallSite());
|
AliasAnalysis::getModRefBehavior(Callee, CallSite());
|
||||||
if (MRB != DoesNotAccessMemory) {
|
if (MRB != DoesNotAccessMemory) {
|
||||||
if (MRB == OnlyReadsMemory) {
|
if (MRB == OnlyReadsMemory && CalleeFR) {
|
||||||
// This reads memory, but we don't know what, just say that it
|
// This reads memory, but we don't know what, just say that it
|
||||||
// reads all globals.
|
// reads all globals.
|
||||||
for (std::map<GlobalValue*, unsigned>::iterator
|
for (std::map<GlobalValue*, unsigned>::iterator
|
||||||
|
Reference in New Issue
Block a user