[llvm-commits] [poolalloc] r102345 - /poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h

John Criswell criswell at uiuc.edu
Mon Apr 26 10:31:41 PDT 2010


Author: criswell
Date: Mon Apr 26 12:31:41 2010
New Revision: 102345

URL: http://llvm.org/viewvc/llvm-project?rev=102345&view=rev
Log:
Modified getPool() to fetch global pools as well as pools local to the function.

Modified:
    poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h

Modified: poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h?rev=102345&r1=102344&r2=102345&view=diff
==============================================================================
--- poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h (original)
+++ poolalloc/branches/release_26/include/poolalloc/PoolAllocate.h Mon Apr 26 12:31:41 2010
@@ -353,10 +353,10 @@
     }
 
     //
-    // We either do not have a pool, or the pool is not accessible from the
-    // specified function.  Return NULL.
+    // Perhaps this is a global pool.  If it isn't, then return a NULL
+    // pointer.
     //
-    return 0;
+    return getGlobalPool (N);
   }
 
   virtual Value * getGlobalPool (const DSNode * Node) {





More information about the llvm-commits mailing list