commit | ea682b31f376052c18d65117f1cfc78425008b75 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Wed Oct 17 20:12:58 2007 +0000 |
committer | Devang Patel <dpatel@apple.com> | Wed Oct 17 20:12:58 2007 +0000 |
tree | e6c98b3ee1e06cc7c8a675d9f8d2ad6c235d44df | |
parent | bb02d34fa42730b45e3f9fd2e52a9da3450493cf [diff] [blame] |
Do not raise free() call that is called through invoke instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43083 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index 44702bc..e6d8723 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -204,6 +204,8 @@ Users.pop_back(); if (Instruction *I = dyn_cast<Instruction>(U)) { + if (isa<InvokeInst>(I)) + continue; CallSite CS = CallSite::get(I); if (CS.getInstruction() && !CS.arg_empty() && (CS.getCalledFunction() == FreeFunc ||