[llvm-commits] [poolalloc] r56950 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp
John Criswell
criswell at uiuc.edu
Thu Oct 2 08:24:27 PDT 2008
Author: criswell
Date: Thu Oct 2 10:24:26 2008
New Revision: 56950
URL: http://llvm.org/viewvc/llvm-project?rev=56950&view=rev
Log:
Handle the possibility of a NULL DSNode because the argument is a constant
NULL pointer.
Modified:
poolalloc/trunk/lib/DSA/StdLibPass.cpp
Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=56950&r1=56949&r2=56950&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Thu Oct 2 10:24:26 2008
@@ -131,7 +131,8 @@
if (recFuncs[x].action.args_write)
for (unsigned y = 1; y < CI->getNumOperands(); ++y)
if (isa<PointerType>(CI->getOperand(y)->getType()))
- Graph.getNodeForValue(CI->getOperand(y)).getNode()->setModifiedMarker();
+ if (DSNode * Node=Graph.getNodeForValue(CI->getOperand(y)).getNode())
+ Node->setModifiedMarker();
if (recFuncs[x].action.args_heap)
for (unsigned y = 1; y < CI->getNumOperands(); ++y)
if (isa<PointerType>(CI->getOperand(y)->getType()))
More information about the llvm-commits
mailing list