mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Fix a possible crash on delete of an uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f69aa3561
commit
967ce7f5e1
@ -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;
|
||||
|
@ -53,6 +53,7 @@ namespace llvm {
|
||||
mutable PIC16Section *ExternalVarDecls;
|
||||
mutable PIC16Section *ExternalVarDefs;
|
||||
|
||||
PIC16TargetObjectFile();
|
||||
~PIC16TargetObjectFile();
|
||||
|
||||
void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||
|
Loading…
Reference in New Issue
Block a user