[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 1 11:29:12 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DSCallSiteIterator.h updated: 1.1 -> 1.2
---
Log message:
Do not treat global variables as functions! (and assert failing)
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h
diff -u llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h:1.1 llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h:1.2
--- llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h:1.1 Mon Jun 30 00:27:53 2003
+++ llvm/lib/Analysis/DataStructure/DSCallSiteIterator.h Tue Jul 1 11:27:53 2003
@@ -39,9 +39,11 @@
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;
More information about the llvm-commits
mailing list