mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
Use isVoidTy().
llvm-svn: 89419
This commit is contained in:
parent
9c08122387
commit
dfd39e724e
@ -56,8 +56,7 @@ bool llvm::PointerMayBeCaptured(const Value *V,
|
||||
// Not captured if the callee is readonly, doesn't return a copy through
|
||||
// its return value and doesn't unwind (a readonly function can leak bits
|
||||
// by throwing an exception or not depending on the input value).
|
||||
if (CS.onlyReadsMemory() && CS.doesNotThrow() &&
|
||||
I->getType() == Type::getVoidTy(V->getContext()))
|
||||
if (CS.onlyReadsMemory() && CS.doesNotThrow() && I->getType()->isVoidTy())
|
||||
break;
|
||||
|
||||
// Not captured if only passed via 'nocapture' arguments. Note that
|
||||
|
Loading…
Reference in New Issue
Block a user