[llvm-commits] [llvm] r89472 - /llvm/trunk/lib/Analysis/CaptureTracking.cpp
Dan Gohman
gohman at apple.com
Fri Nov 20 11:33:17 PST 2009
Author: djg
Date: Fri Nov 20 13:33:16 2009
New Revision: 89472
URL: http://llvm.org/viewvc/llvm-project?rev=89472&view=rev
Log:
Use stripPointerCasts(). Thanks Duncan!
Modified:
llvm/trunk/lib/Analysis/CaptureTracking.cpp
Modified: llvm/trunk/lib/Analysis/CaptureTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CaptureTracking.cpp?rev=89472&r1=89471&r2=89472&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CaptureTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/CaptureTracking.cpp Fri Nov 20 13:33:16 2009
@@ -109,7 +109,7 @@
// Don't count comparisons of a no-alias return value against null as
// captures. This allows us to ignore comparisons of malloc results
// with null, for example.
- if (isNoAliasCall(V))
+ if (isNoAliasCall(V->stripPointerCasts()))
if (ConstantPointerNull *CPN =
dyn_cast<ConstantPointerNull>(I->getOperand(1)))
if (CPN->getType()->getAddressSpace() == 0)
More information about the llvm-commits
mailing list