diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-16 00:47:21 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-16 00:47:21 +0000 |
commit | e891775aa13b42d40483481b9dc5c701d1cc1be5 (patch) | |
tree | f7a46eb3e0b69cdd924eb430dd8c767809d4f7c6 /lib | |
parent | 28a765542c7a57821fc4c06454c1326e2f66a1d9 (diff) | |
download | external_llvm-e891775aa13b42d40483481b9dc5c701d1cc1be5.zip external_llvm-e891775aa13b42d40483481b9dc5c701d1cc1be5.tar.gz external_llvm-e891775aa13b42d40483481b9dc5c701d1cc1be5.tar.bz2 |
Simplify zero initialization of DIEAttrs variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIEHash.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ void DIEHash::hashAttributes(const DIEAttrs &Attrs) { // 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); } |