mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Do not treat global variables as functions! (and assert failing)
llvm-svn: 7030
This commit is contained in:
parent
7ab30a179b
commit
3536455262
@ -39,9 +39,11 @@ struct DSCallSiteIterator {
|
||||
DSNode *CalleeNode = (*FCs)[CallSite].getCalleeNode();
|
||||
if (CallSiteEntry || isCompleteNode(CalleeNode)) {
|
||||
const std::vector<GlobalValue*> &Callees = CalleeNode->getGlobals();
|
||||
|
||||
if (CallSiteEntry < Callees.size())
|
||||
return;
|
||||
while (CallSiteEntry < Callees.size()) {
|
||||
if (isa<Function>(Callees[CallSiteEntry]))
|
||||
return;
|
||||
++CallSiteEntry;
|
||||
}
|
||||
}
|
||||
}
|
||||
CallSiteEntry = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user