summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-14 10:37:36 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-14 10:37:36 +0000
commit89ca7b3e36f29accbba44510503779af773ac9c9 (patch)
tree5ae0c45b73c6a7c581fbaf8b57950d20feaa6641 /lib/DebugInfo
parentb98e0c4da5fe463306b58fac00e9ba507c80f235 (diff)
downloadllvm-89ca7b3e36f29accbba44510503779af773ac9c9.tar.gz
llvm-89ca7b3e36f29accbba44510503779af773ac9c9.tar.bz2
llvm-89ca7b3e36f29accbba44510503779af773ac9c9.tar.xz
Use ctor instead of initializer list to appease Windows buildbots
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFAbbreviationDeclaration.cpp2
-rw-r--r--lib/DebugInfo/DWARFAbbreviationDeclaration.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp b/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
index ebd5bef377..c3e570e14c 100644
--- a/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
+++ b/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
@@ -51,7 +51,7 @@ DWARFAbbreviationDeclaration::extract(DataExtractor Data, uint32_t* OffsetPtr) {
}
if (Attr == 0 && Form == 0)
break;
- AttributeSpecs.push_back(AttributeSpec{Attr, Form});
+ AttributeSpecs.push_back(AttributeSpec(Attr, Form));
}
if (Tag == 0) {
diff --git a/lib/DebugInfo/DWARFAbbreviationDeclaration.h b/lib/DebugInfo/DWARFAbbreviationDeclaration.h
index f575f323af..b86b9ecbe4 100644
--- a/lib/DebugInfo/DWARFAbbreviationDeclaration.h
+++ b/lib/DebugInfo/DWARFAbbreviationDeclaration.h
@@ -23,6 +23,7 @@ class DWARFAbbreviationDeclaration {
bool HasChildren;
struct AttributeSpec {
+ AttributeSpec(uint16_t Attr, uint16_t Form) : Attr(Attr), Form(Form) {}
uint16_t Attr;
uint16_t Form;
};