Use ctor instead of initializer list to appease Windows buildbots
authorAlexey Samsonov <samsonov@google.com>
Fri, 14 Mar 2014 10:37:36 +0000 (10:37 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 14 Mar 2014 10:37:36 +0000 (10:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203915 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
lib/DebugInfo/DWARFAbbreviationDeclaration.h

index ebd5bef377eff401f1c497d44d654e8feb02385d..c3e570e14ccd93dbb0445e1b757552fda074a1ad 100644 (file)
@@ -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) {
index f575f323afc14788c84da3525721e8fcd329e659..b86b9ecbe4b302be49d6cbaec31185adc2df44c3 100644 (file)
@@ -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;
   };