From 3c2ea3106c70e8fcb0c97300584f849651248d0c 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 llvm-svn: 231985 --- llvm/lib/CodeGen/WinEHPrepare.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index b9830e0..05de6bf 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/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. -- 2.7.4