summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-06-24 13:19:41 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-06-24 13:19:41 +0000
commitf7f5894d8d6bc599bc65976259e9065b0d0352da (patch)
treee428aca63274662686707a538a5193f4c505b21c /llvm/lib
parent1d7bdb171a5e91077833585aef651e1856d54b61 (diff)
downloadbcm5719-llvm-f7f5894d8d6bc599bc65976259e9065b0d0352da.tar.gz
bcm5719-llvm-f7f5894d8d6bc599bc65976259e9065b0d0352da.zip
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. llvm-svn: 184728
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h b/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h
index 6ab0e08ad09..bfd6ab12f49 100644
--- a/llvm/lib/Target/NVPTX/NVPTXTargetObjectFile.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud