summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit3e13ef529691caead77b8be5cd47237b6aba9ad3 (patch)
tree20fd0a94aba3e710a092dbdeab55a6c254ff39fa /llvm/lib
parent9c97e0de246a1be037b08496d8ddf9959640590e (diff)
downloadbcm5719-llvm-3e13ef529691caead77b8be5cd47237b6aba9ad3.tar.gz
bcm5719-llvm-3e13ef529691caead77b8be5cd47237b6aba9ad3.zip
Use temporary instead of a local variable here
llvm-svn: 203914
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp b/llvm/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
index b9805af54fa..ebd5bef377e 100644
--- a/llvm/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud