mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Do not treat global variables as functions! (and assert failing)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7030 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9dad2cf61
commit
b6734b281b
@ -39,9 +39,11 @@ struct DSCallSiteIterator {
|
|||||||
DSNode *CalleeNode = (*FCs)[CallSite].getCalleeNode();
|
DSNode *CalleeNode = (*FCs)[CallSite].getCalleeNode();
|
||||||
if (CallSiteEntry || isCompleteNode(CalleeNode)) {
|
if (CallSiteEntry || isCompleteNode(CalleeNode)) {
|
||||||
const std::vector<GlobalValue*> &Callees = CalleeNode->getGlobals();
|
const std::vector<GlobalValue*> &Callees = CalleeNode->getGlobals();
|
||||||
|
while (CallSiteEntry < Callees.size()) {
|
||||||
if (CallSiteEntry < Callees.size())
|
if (isa<Function>(Callees[CallSiteEntry]))
|
||||||
return;
|
return;
|
||||||
|
++CallSiteEntry;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CallSiteEntry = 0;
|
CallSiteEntry = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user