From 59935868d379926ae9976f5182d1d9a0cc7498c6 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 18 Feb 2015 18:52:49 +0000 Subject: [PATCH] Remove unused member variables (-Wunused-private-field) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229722 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index 03f6e851759..c6f8d091bad 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -60,10 +60,8 @@ private: class WinEHCatchDirector : public CloningDirector { public: - WinEHCatchDirector(LandingPadInst *LPI, Function *CatchFn, Value *Selector, - Value *EHObj) - : LPI(LPI), CatchFn(CatchFn), - CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj), + WinEHCatchDirector(LandingPadInst *LPI, Value *Selector, Value *EHObj) + : LPI(LPI), CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj), SelectorIDType(Type::getInt32Ty(LPI->getContext())), Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {} virtual ~WinEHCatchDirector() {} @@ -74,7 +72,6 @@ public: private: LandingPadInst *LPI; - Function *CatchFn; Value *CurrentSelector; Value *EHObj; Type *SelectorIDType; @@ -84,7 +81,6 @@ private: const Value *ExtractedSelector; const Value *EHPtrStoreAddr; const Value *SelectorStoreAddr; - const Value *EHObjStoreAddr; }; } // end anonymous namespace @@ -245,7 +241,7 @@ bool WinEHPrepare::outlineCatchHandler(Function *SrcFn, Constant *SelectorType, // FIXME: Map other values referenced in the filter handler. - WinEHCatchDirector Director(LPad, CatchHandler, SelectorType, EHObj); + WinEHCatchDirector Director(LPad, SelectorType, EHObj); SmallVector Returns; ClonedCodeInfo InlinedFunctionInfo;