mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
Use stripPointerCasts(). Thanks Duncan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
557bbe6b5d
commit
5bd698e65c
@ -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