From 94ded5f39e10ff3826f83fbada59a4db1bac1f5d Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 16 Oct 2013 00:47:21 +0000 Subject: Simplify zero initialization of DIEAttrs variable. llvm-svn: 192755 --- llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter') 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); } -- cgit v1.2.3