mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Fix memory leak in WinEHPrepare introduced in r227405.
This leak was detected by ASan bootstrap of LLVM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4c7a8188f
commit
d9b3a8244a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user