From: Vikram S. Adve Date: Wed, 30 Oct 2002 20:38:49 +0000 (+0000) Subject: Bug fix: need to initialize new CallArgsDescriptor pointer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=601899d196db343670943285c8f989534710937e;p=oota-llvm.git Bug fix: need to initialize new CallArgsDescriptor pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4453 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h index f4ec42dbf3d..9894c94b109 100644 --- a/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/include/llvm/CodeGen/MachineCodeForInstruction.h @@ -32,7 +32,7 @@ class MachineCodeForInstruction : public Annotation { std::vector Contents; // the machine instr for this VM instr CallArgsDescriptor* callArgsDesc; // only used for CALL instructions public: - MachineCodeForInstruction() : Annotation(MCFI_AID) {} + MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {} ~MachineCodeForInstruction(); static MachineCodeForInstruction &get(const Instruction *I) { diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h index f4ec42dbf3d..9894c94b109 100644 --- a/lib/Target/SparcV9/MachineCodeForInstruction.h +++ b/lib/Target/SparcV9/MachineCodeForInstruction.h @@ -32,7 +32,7 @@ class MachineCodeForInstruction : public Annotation { std::vector Contents; // the machine instr for this VM instr CallArgsDescriptor* callArgsDesc; // only used for CALL instructions public: - MachineCodeForInstruction() : Annotation(MCFI_AID) {} + MachineCodeForInstruction() : Annotation(MCFI_AID), callArgsDesc(NULL) {} ~MachineCodeForInstruction(); static MachineCodeForInstruction &get(const Instruction *I) {