diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:34:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-03 05:34:51 +0000 |
commit | b8d264aa6b76b9f69da1f1a772dadd9b6fb949c3 (patch) | |
tree | 6b5f95c7f95b4ea52f48bfdcfa25d47e84c9c1e3 /lib/Analysis/CaptureTracking.cpp | |
parent | 938e17663338b3b1b9f2dba21516c4c80876edb1 (diff) |
remove a check of isFreeCall: the argument to free is already nocapture so the generic call code works fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CaptureTracking.cpp')
-rw-r--r-- | lib/Analysis/CaptureTracking.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index d0baaca960..f615881829 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -17,7 +17,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Analysis/CaptureTracking.h" -#include "llvm/Analysis/MemoryBuiltins.h" #include "llvm/Instructions.h" #include "llvm/Value.h" #include "llvm/ADT/SmallSet.h" @@ -49,9 +48,6 @@ bool llvm::PointerMayBeCaptured(const Value *V, bool ReturnCaptures) { switch (I->getOpcode()) { case Instruction::Call: - if (isFreeCall(I)) - // Freeing a pointer does not cause it to be captured. - break; case Instruction::Invoke: { CallSite CS = CallSite::get(I); // Not captured if the callee is readonly, doesn't return a copy through |