diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp index 519c8a00685..c56d2e64730 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/llvm/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); } |