[llvm] r203914 - Use temporary instead of a local variable here

Alexey Samsonov samsonov at google.com
Fri Mar 14 03:20:10 PDT 2014


Author: samsonov
Date: Fri Mar 14 05:20:10 2014
New Revision: 203914

URL: http://llvm.org/viewvc/llvm-project?rev=203914&view=rev
Log:
Use temporary instead of a local variable here

Modified:
    llvm/trunk/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp

Modified: llvm/trunk/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp?rev=203914&r1=203913&r2=203914&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFAbbreviationDeclaration.cpp Fri Mar 14 05:20:10 2014
@@ -51,8 +51,7 @@ DWARFAbbreviationDeclaration::extract(Da
     }
     if (Attr == 0 && Form == 0)
       break;
-    AttributeSpec AS = {Attr, Form};
-    AttributeSpecs.push_back(AS);
+    AttributeSpecs.push_back(AttributeSpec{Attr, Form});
   }
 
   if (Tag == 0) {





More information about the llvm-commits mailing list