From 866fe5889e078b5f7b6a724cf3f822adc39b3ae5 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 29 Jan 2015 00:55:44 +0000 Subject: [PATCH] Remove unused variable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index a01adcd43d0..f9767384467 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -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();