summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-14 10:20:10 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-14 10:20:10 +0000
commitb98e0c4da5fe463306b58fac00e9ba507c80f235 (patch)
tree962c0395c5bea287e8bbdb9caaf25883c94d8a56 /lib/DebugInfo
parentd463c7e74ecb887ed7055313b314dd09d22dd0f5 (diff)
downloadllvm-b98e0c4da5fe463306b58fac00e9ba507c80f235.tar.gz
llvm-b98e0c4da5fe463306b58fac00e9ba507c80f235.tar.bz2
llvm-b98e0c4da5fe463306b58fac00e9ba507c80f235.tar.xz
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
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFAbbreviationDeclaration.cpp3
1 files changed, 1 insertions, 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) {