Bug fix: need to initialize new CallArgsDescriptor pointer.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 30 Oct 2002 20:38:49 +0000 (20:38 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 30 Oct 2002 20:38:49 +0000 (20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4453 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineCodeForInstruction.h
lib/Target/SparcV9/MachineCodeForInstruction.h

index f4ec42dbf3d0b8b520ac39cabd89d1b96e3f4368..9894c94b109e63bc86c4f0a009723c808a6896b7 100644 (file)
@@ -32,7 +32,7 @@ class MachineCodeForInstruction : public Annotation {
   std::vector<MachineInstr*> 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) {
index f4ec42dbf3d0b8b520ac39cabd89d1b96e3f4368..9894c94b109e63bc86c4f0a009723c808a6896b7 100644 (file)
@@ -32,7 +32,7 @@ class MachineCodeForInstruction : public Annotation {
   std::vector<MachineInstr*> 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) {