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 | 5bd698e65c6858c7d2a715e29b57f63a60295923 (patch) | |
tree | a62f54a5148f9bdf2b29dd2032c95e2888ab3077 /lib/Analysis/CaptureTracking.cpp | |
parent | 557bbe6b5d13faaec38f85a266db457c7cb09ff2 (diff) |
Use stripPointerCasts(). Thanks Duncan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | lib/Analysis/CaptureTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index 8364d81497..a276c64c9a 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/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) |