Fix memory leak in WinEHPrepare introduced in r227405.

This leak was detected by ASan bootstrap of LLVM.

llvm-svn: 227625
This commit is contained in:
Alexey Samsonov 2015-01-30 22:07:05 +00:00
parent b1874ebd32
commit 964f4dbaae
1 changed files with 3 additions and 1 deletions

View File

@ -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.