From d24c2c8cdf5a6bad2920092584555ea1a3f4b003 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 11 Mar 2015 23:39:36 +0000 Subject: [PATCH] Fix some clang warnings in WinEHPrepare git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231985 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index b9830e0b556..05de6bf39fa 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -261,8 +261,8 @@ private: class CatchHandler : public ActionHandler { public: CatchHandler(BasicBlock *BB, Constant *Selector, BasicBlock *NextBB) - : Selector(Selector), NextBB(NextBB), ExceptionObjectVar(nullptr), - ActionHandler(BB, ActionType::Catch) {} + : ActionHandler(BB, ActionType::Catch), Selector(Selector), + NextBB(NextBB), ExceptionObjectVar(nullptr) {} // Method for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const ActionHandler *H) { @@ -1140,7 +1140,6 @@ void WinEHPrepare::mapLandingPadBlocks(LandingPadInst *LPad, VisitedBlockSet VisitedBlocks; while (HandlersFound != NumClauses) { - Constant *Selector = nullptr; BasicBlock *NextBB = nullptr; // See if the clause we're looking for is a catch-all.