commit | e891775aa13b42d40483481b9dc5c701d1cc1be5 | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Wed Oct 16 00:47:21 2013 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Wed Oct 16 00:47:21 2013 +0000 |
tree | f7a46eb3e0b69cdd924eb430dd8c767809d4f7c6 | |
parent | 28a765542c7a57821fc4c06454c1326e2f66a1d9 [diff] [blame] |
Simplify zero initialization of DIEAttrs variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192755 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp index 519c8a0..c56d2e6 100644 --- a/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -361,8 +361,7 @@ // Add all of the attributes for \param Die to the hash. void DIEHash::addAttributes(DIE *Die) { - DIEAttrs Attrs; - memset(&Attrs, 0, sizeof(Attrs)); + DIEAttrs Attrs = {}; collectAttributes(Die, Attrs); hashAttributes(Attrs); }