[PATCH] D64407: [DWARF] Simplify constructing of DWARFAttribute. NFC.

Eugene Zelenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 06:12:58 PDT 2019


Eugene.Zelenko added inline comments.


================
Comment at: lib/DebugInfo/DWARF/DWARFDie.cpp:666
 DWARFDie::attribute_iterator::attribute_iterator(DWARFDie D, bool End)
-    : Die(D), AttrValue(0), Index(0) {
+    : Die(D), AttrValue(), Index(0) {
   auto AbbrDecl = Die.getAbbreviationDeclarationPtr();
----------------
You don't need to call default member constructor explicitly. Default member initialization could be used for Index too.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64407/new/

https://reviews.llvm.org/D64407





More information about the llvm-commits mailing list