diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp index 519c8a00685..c56d2e64730 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); }