diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-06-24 13:19:41 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-06-24 13:19:41 +0000 |
commit | f1505ff35bf76cb044c261b4cc97773d47658805 (patch) | |
tree | 373a3afedcc20dce9484618581e11710483ab141 /lib/Target/NVPTX/NVPTXTargetObjectFile.h | |
parent | 48473a8de50d6047432a3619e4781788ba004c93 (diff) | |
download | external_llvm-f1505ff35bf76cb044c261b4cc97773d47658805.zip external_llvm-f1505ff35bf76cb044c261b4cc97773d47658805.tar.gz external_llvm-f1505ff35bf76cb044c261b4cc97773d47658805.tar.bz2 |
NVPTXTargetObjectFile.h: Initialize some pointers as NULL in the constructor of NVPTXTargetObjectFile. ~NVPTXTargetObjectFile() tries to delete them.
It caused crash on some hosts since r184595.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXTargetObjectFile.h')
-rw-r--r-- | lib/Target/NVPTX/NVPTXTargetObjectFile.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXTargetObjectFile.h b/lib/Target/NVPTX/NVPTXTargetObjectFile.h index 6ab0e08..bfd6ab1 100644 --- a/lib/Target/NVPTX/NVPTXTargetObjectFile.h +++ b/lib/Target/NVPTX/NVPTXTargetObjectFile.h @@ -21,7 +21,29 @@ class Module; class NVPTXTargetObjectFile : public TargetLoweringObjectFile { public: - NVPTXTargetObjectFile() {} + NVPTXTargetObjectFile() { + TextSection = 0; + DataSection = 0; + BSSSection = 0; + ReadOnlySection = 0; + + StaticCtorSection = 0; + StaticDtorSection = 0; + LSDASection = 0; + EHFrameSection = 0; + DwarfAbbrevSection = 0; + DwarfInfoSection = 0; + DwarfLineSection = 0; + DwarfFrameSection = 0; + DwarfPubTypesSection = 0; + DwarfDebugInlineSection = 0; + DwarfStrSection = 0; + DwarfLocSection = 0; + DwarfARangesSection = 0; + DwarfRangesSection = 0; + DwarfMacroInfoSection = 0; + } + ~NVPTXTargetObjectFile() { delete TextSection; delete DataSection; |