summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-16 00:47:21 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-16 00:47:21 +0000
commit94ded5f39e10ff3826f83fbada59a4db1bac1f5d (patch)
tree1d7e0f02bd983f79ee0262adeaea98cc95f61437 /llvm/lib
parent877b931a41366e22110c68335e8b92d7437bd09e (diff)
downloadbcm5719-llvm-94ded5f39e10ff3826f83fbada59a4db1bac1f5d.tar.gz
bcm5719-llvm-94ded5f39e10ff3826f83fbada59a4db1bac1f5d.zip
Simplify zero initialization of DIEAttrs variable.
llvm-svn: 192755
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp3
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);
}
OpenPOWER on IntegriCloud