[llvm-commits] [llvm] r89419 - /llvm/trunk/lib/Analysis/CaptureTracking.cpp
Dan Gohman
gohman at apple.com
Thu Nov 19 16:43:15 PST 2009
Author: djg
Date: Thu Nov 19 18:43:11 2009
New Revision: 89419
URL: http://llvm.org/viewvc/llvm-project?rev=89419&view=rev
Log:
Use isVoidTy().
Modified:
llvm/trunk/lib/Analysis/CaptureTracking.cpp
Modified: llvm/trunk/lib/Analysis/CaptureTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CaptureTracking.cpp?rev=89419&r1=89418&r2=89419&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CaptureTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/CaptureTracking.cpp Thu Nov 19 18:43:11 2009
@@ -56,8 +56,7 @@
// 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
More information about the llvm-commits
mailing list