calls to external functions are already marked overdefined, special casing

malloc isn't needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-09-27 21:35:11 +00:00
parent 4412d04876
commit 32c0d2255f

View File

@ -30,7 +30,6 @@
#include "llvm/LLVMContext.h"
#include "llvm/Pass.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/MallocHelper.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Support/CallSite.h"
@ -402,10 +401,7 @@ private:
void visitLoadInst (LoadInst &I);
void visitGetElementPtrInst(GetElementPtrInst &I);
void visitCallInst (CallInst &I) {
if (isMalloc(&I))
markOverdefined(&I);
else
visitCallSite(CallSite::get(&I));
visitCallSite(CallSite::get(&I));
}
void visitInvokeInst (InvokeInst &II) {
visitCallSite(CallSite::get(&II));