From b98e0c4da5fe463306b58fac00e9ba507c80f235 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 14 Mar 2014 10:20:10 +0000 Subject: Use temporary instead of a local variable here git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203914 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/DebugInfo/DWARFAbbreviationDeclaration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp b/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp index b9805af54f..ebd5bef377 100644 --- a/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp +++ b/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp @@ -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) { -- cgit v1.2.3