[llvm-commits] [poolalloc] r121926 - /poolalloc/trunk/lib/DSA/DSGraph.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Wed Dec 15 16:03:04 PST 2010
Author: aggarwa4
Date: Wed Dec 15 18:03:04 2010
New Revision: 121926
URL: http://llvm.org/viewvc/llvm-project?rev=121926&view=rev
Log:
This works as well. Because, we have already
checked that it V is a pointer value.
Modified:
poolalloc/trunk/lib/DSA/DSGraph.cpp
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=121926&r1=121925&r2=121926&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Wed Dec 15 18:03:04 2010
@@ -69,7 +69,7 @@
// Undef values, even ones of pointer type, don't get nodes.
if (isa<UndefValue>(V)) return false;
- if (isa<Constant>(V) && cast<Constant>(V)->isNullValue())
+ if (isa<ConstantPointerNull>(V))
return false;
// Use the Aliasee of GlobalAliases
More information about the llvm-commits
mailing list