summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-03 05:34:51 +0000
committerChris Lattner <sabre@nondot.org>2009-11-03 05:34:51 +0000
commite9dccd4934f7535a35a494ae1c2ac7573473b35e (patch)
treeba6fba889d54bc9e4d0d1a2ca78d9ad54b334be6 /llvm/lib/Analysis
parentd1b67db2e8d6dfceebb84da2857bd37ce9128034 (diff)
downloadbcm5719-llvm-e9dccd4934f7535a35a494ae1c2ac7573473b35e.tar.gz
bcm5719-llvm-e9dccd4934f7535a35a494ae1c2ac7573473b35e.zip
remove a check of isFreeCall: the argument to free is already nocapture so the generic call code works fine.
llvm-svn: 85865
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/CaptureTracking.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index d0baaca9600..f615881829c 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud