summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-03-11 23:39:36 +0000
committerReid Kleckner <reid@kleckner.net>2015-03-11 23:39:36 +0000
commit3c2ea3106c70e8fcb0c97300584f849651248d0c (patch)
treee4091496df2c41bc34de43d9e8a86049c72121dc
parent016c6b2104ec98fa186f5d46d3c29bfd9791feff (diff)
downloadbcm5719-llvm-3c2ea3106c70e8fcb0c97300584f849651248d0c.tar.gz
bcm5719-llvm-3c2ea3106c70e8fcb0c97300584f849651248d0c.zip
Fix some clang warnings in WinEHPrepare
llvm-svn: 231985
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index b9830e0b556..05de6bf39fa 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.
OpenPOWER on IntegriCloud