Remove unused variable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner 2015-01-29 00:55:44 +00:00
parent f77571aeac
commit 866fe5889e

View File

@ -87,8 +87,6 @@ bool WinEHPrepare::runOnFunction(Function &Fn) {
if (Resumes.empty())
return false;
Function *Trap =
Intrinsic::getDeclaration(Fn.getParent(), Intrinsic::trap, None);
for (ResumeInst *Resume : Resumes) {
IRBuilder<>(Resume).CreateUnreachable();
Resume->eraseFromParent();