diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-20 00:43:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-20 00:43:11 +0000 |
commit | 452ae47db65cbae908853b11ca73b1e791235ff1 (patch) | |
tree | 51cb4e614955d11e21a1f73e701166503c1e7662 /lib/Analysis/CaptureTracking.cpp | |
parent | 0fe60c79fb46fda09faf5d65f883423487b6ed1b (diff) |
Use isVoidTy().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | lib/Analysis/CaptureTracking.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index 6781dccc97..9f27e3dd18 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -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 |