1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Fix a possible crash on delete of an uninitialized variable.

llvm-svn: 77846
This commit is contained in:
Daniel Dunbar 2009-08-02 01:25:15 +00:00
parent 29c0894945
commit 59c4432b7f
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -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);