diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-20 19:33:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-20 19:33:16 +0000 |
commit | ff203777407a26b09682b6a21b77c2a73a4f1d65 (patch) | |
tree | 50f3fb6bd73e5ba73e94d68c9df154b03f557221 /llvm/lib | |
parent | 80a03cc0b1f3a50cef165bdcdb74314474017bd5 (diff) | |
download | bcm5719-llvm-ff203777407a26b09682b6a21b77c2a73a4f1d65.tar.gz bcm5719-llvm-ff203777407a26b09682b6a21b77c2a73a4f1d65.zip |
Use stripPointerCasts(). Thanks Duncan!
llvm-svn: 89472
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/CaptureTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp index 8364d81497c..a276c64c9a4 100644 --- a/llvm/lib/Analysis/CaptureTracking.cpp +++ b/llvm/lib/Analysis/CaptureTracking.cpp @@ -109,7 +109,7 @@ bool llvm::PointerMayBeCaptured(const Value *V, // 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) |