diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-06 21:16:41 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-06 21:16:41 +0000 |
commit | aa5abe88d6aa445afa593476a665e3ab14b3524c (patch) | |
tree | ae087069917a1049f53de52e75aba8397d20a8f2 /lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 0f96817d010c4d2abbb0e1c1cfc56ff537010081 (diff) |
[unwind removal] We no longer have 'unwind' instructions being generated, so
remove the code that handles them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCalls.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index 5bdba9c017..b550fe83eb 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -737,8 +737,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { // If the stack restore is in a return, resume, or unwind block and if there // are no allocas or calls between the restore and the return, nuke the // restore. - if (!CannotRemove && (isa<ReturnInst>(TI) || isa<ResumeInst>(TI) || - isa<UnwindInst>(TI))) + if (!CannotRemove && (isa<ReturnInst>(TI) || isa<ResumeInst>(TI))) return EraseInstFromFunction(CI); break; } |