summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-06 21:16:41 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-06 21:16:41 +0000
commitaa5abe88d6aa445afa593476a665e3ab14b3524c (patch)
treeae087069917a1049f53de52e75aba8397d20a8f2 /lib/CodeGen/ShadowStackGC.cpp
parent0f96817d010c4d2abbb0e1c1cfc56ff537010081 (diff)
downloadllvm-aa5abe88d6aa445afa593476a665e3ab14b3524c.tar.gz
llvm-aa5abe88d6aa445afa593476a665e3ab14b3524c.tar.bz2
llvm-aa5abe88d6aa445afa593476a665e3ab14b3524c.tar.xz
[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/CodeGen/ShadowStackGC.cpp')
-rw-r--r--lib/CodeGen/ShadowStackGC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp
index 2609256c8f..0016047a13 100644
--- a/lib/CodeGen/ShadowStackGC.cpp
+++ b/lib/CodeGen/ShadowStackGC.cpp
@@ -116,8 +116,7 @@ namespace {
// Branches and invokes do not escape, only unwind, resume, and return
// do.
TerminatorInst *TI = CurBB->getTerminator();
- if (!isa<UnwindInst>(TI) && !isa<ReturnInst>(TI) &&
- !isa<ResumeInst>(TI))
+ if (!isa<ReturnInst>(TI) && !isa<ResumeInst>(TI))
continue;
Builder.SetInsertPoint(TI->getParent(), TI);