[llvm-commits] [see] CVS: llvm-poolalloc/lib/DSA/TopDownClosure.cpp
John Criswell
criswell at cs.uiuc.edu
Wed Mar 7 14:54:16 PST 2007
Changes in directory llvm-poolalloc/lib/DSA:
TopDownClosure.cpp updated: 1.92.2.1.2.1 -> 1.92.2.1.2.2
---
Log message:
It is possible that MetaPools may be added which have no DSNode.
Skip them properly.
---
Diffs of the changes: (+1 -1)
TopDownClosure.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm-poolalloc/lib/DSA/TopDownClosure.cpp
diff -u llvm-poolalloc/lib/DSA/TopDownClosure.cpp:1.92.2.1.2.1 llvm-poolalloc/lib/DSA/TopDownClosure.cpp:1.92.2.1.2.2
--- llvm-poolalloc/lib/DSA/TopDownClosure.cpp:1.92.2.1.2.1 Wed Feb 28 11:35:33 2007
+++ llvm-poolalloc/lib/DSA/TopDownClosure.cpp Wed Mar 7 16:53:59 2007
@@ -73,7 +73,7 @@
for (DSScalarMap::global_iterator I=GGSM.global_begin(), E=GGSM.global_end();
I != E; ++I) {
DSNode *N = GGSM.find(*I)->second.getNode();
- if (N->isIncomplete())
+ if ((N) && (N->isIncomplete()))
markReachableFunctionsExternallyAccessible(N, Visited);
}
More information about the llvm-commits
mailing list