mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Use stripPointerCasts(). Thanks Duncan!
llvm-svn: 89472
This commit is contained in:
parent
8954ccb109
commit
b9c2249009
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user