remove a check of isFreeCall: the argument to free is already nocapture so the generic call code works fine.

llvm-svn: 85865
This commit is contained in:
Chris Lattner 2009-11-03 05:34:51 +00:00
parent d1b67db2e8
commit e9dccd4934
1 changed files with 0 additions and 4 deletions

View File

@ -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