diff options
| -rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 52bca672480..c608bb0a31e 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -20,13 +20,15 @@ #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Instructions.h" #include "llvm/Pass.h" +#include <memory> + using namespace llvm; #define DEBUG_TYPE "winehprepare" namespace { class WinEHPrepare : public FunctionPass { - FunctionPass *DwarfPrepare; + std::unique_ptr<FunctionPass> DwarfPrepare; public: static char ID; // Pass identification, replacement for typeid. |

