[llvm] r231985 - Fix some clang warnings in WinEHPrepare
Reid Kleckner
reid at kleckner.net
Wed Mar 11 16:39:36 PDT 2015
Author: rnk
Date: Wed Mar 11 18:39:36 2015
New Revision: 231985
URL: http://llvm.org/viewvc/llvm-project?rev=231985&view=rev
Log:
Fix some clang warnings in WinEHPrepare
Modified:
llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=231985&r1=231984&r2=231985&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Wed Mar 11 18:39:36 2015
@@ -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(L
VisitedBlockSet VisitedBlocks;
while (HandlersFound != NumClauses) {
- Constant *Selector = nullptr;
BasicBlock *NextBB = nullptr;
// See if the clause we're looking for is a catch-all.
More information about the llvm-commits
mailing list