[llvm-commits] [poolalloc] r100885 - /poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp

Patrick Simmons simmon12 at illinois.edu
Fri Apr 9 12:17:37 PDT 2010


Author: psimmons
Date: Fri Apr  9 14:17:37 2010
New Revision: 100885

URL: http://llvm.org/viewvc/llvm-project?rev=100885&view=rev
Log:
Need to use global node to identify heap status of node (bug found by Vikram)

Modified:
    poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp

Modified: poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp?rev=100885&r1=100884&r2=100885&view=diff
==============================================================================
--- poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp (original)
+++ poolalloc/branches/release_26/lib/PoolAllocate/PoolAllocate.cpp Fri Apr  9 14:17:37 2010
@@ -722,7 +722,8 @@
   for (DSGraph::node_iterator I = G->node_begin(), E = G->node_end(); I != E;++I){
     // We only need to make a pool if there is a heap object in it...
     DSNode *N = I;
-    if ((N->isHeapNode()) || (BoundsChecksEnabled && (N->isArray()))) {
+    if ((N->isHeapNode()) || (BoundsChecksEnabled && (N->isArray())) ||
+    	GlobalsGraphNodeMapping.count(N) && GlobalsGraphNodeMapping[N].getNode()->isHeapNode()) {
       if (GlobalsGraphNodeMapping.count(N)) {
         // If it is a global pool, set up the pool descriptor appropriately.
         DSNode *GGN = GlobalsGraphNodeMapping[N].getNode();





More information about the llvm-commits mailing list