diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index f9767384467..b5f8463b896 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -27,13 +27,12 @@ using namespace llvm; namespace { class WinEHPrepare : public FunctionPass { - const TargetMachine *TM; FunctionPass *DwarfPrepare; public: static char ID; // Pass identification, replacement for typeid. WinEHPrepare(const TargetMachine *TM = nullptr) - : FunctionPass(ID), TM(TM), DwarfPrepare(createDwarfEHPass(TM)) { + : FunctionPass(ID), DwarfPrepare(createDwarfEHPass(TM)) { initializeDominatorTreeWrapperPassPass(*PassRegistry::getPassRegistry()); }