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 | d5d95b0b510a1cf6b4b72b444649178113bd05bd (patch) | |
tree | bda4a63191623f1cc7339aa065478215398764e7 /llvm/lib/CodeGen/ShadowStackGC.cpp | |
parent | a2791f8aeb2ea2b439c7a8cbb4bd2fe781f21c34 (diff) | |
download | bcm5719-llvm-d5d95b0b510a1cf6b4b72b444649178113bd05bd.tar.gz bcm5719-llvm-d5d95b0b510a1cf6b4b72b444649178113bd05bd.zip |
[unwind removal] We no longer have 'unwind' instructions being generated, so
remove the code that handles them.
llvm-svn: 149901
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ShadowStackGC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp index 2609256c8ff..0016047a134 100644 --- a/llvm/lib/CodeGen/ShadowStackGC.cpp +++ b/llvm/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); |