forked from OSchip/llvm-project
Fix a possible crash on delete of an uninitialized variable.
llvm-svn: 77846
This commit is contained in:
parent
6eca7ab91c
commit
cc5e54e986
|
@ -15,6 +15,11 @@
|
|||
#include "llvm/MC/MCSection.h"
|
||||
using namespace llvm;
|
||||
|
||||
PIC16TargetObjectFile::PIC16TargetObjectFile()
|
||||
: ExternalVarDecls(0), ExternalVarDefs(0)
|
||||
{
|
||||
}
|
||||
|
||||
void PIC16TargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &tm){
|
||||
TargetLoweringObjectFile::Initialize(Ctx, tm);
|
||||
TM = &tm;
|
||||
|
|
|
@ -52,7 +52,8 @@ namespace llvm {
|
|||
mutable std::vector<PIC16Section*> ROSections;
|
||||
mutable PIC16Section *ExternalVarDecls;
|
||||
mutable PIC16Section *ExternalVarDefs;
|
||||
|
||||
|
||||
PIC16TargetObjectFile();
|
||||
~PIC16TargetObjectFile();
|
||||
|
||||
void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||
|
|
Loading…
Reference in New Issue