Use temporary instead of a local variable here
authorAlexey Samsonov <samsonov@google.com>
Fri, 14 Mar 2014 10:20:10 +0000 (10:20 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 14 Mar 2014 10:20:10 +0000 (10:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203914 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFAbbreviationDeclaration.cpp

index b9805af54fa6fa290ac9df3bc6b0e7297add6ab8..ebd5bef377eff401f1c497d44d654e8feb02385d 100644 (file)
@@ -51,8 +51,7 @@ DWARFAbbreviationDeclaration::extract(DataExtractor Data, uint32_t* OffsetPtr) {
     }
     if (Attr == 0 && Form == 0)
       break;
-    AttributeSpec AS = {Attr, Form};
-    AttributeSpecs.push_back(AS);
+    AttributeSpecs.push_back(AttributeSpec{Attr, Form});
   }
 
   if (Tag == 0) {