mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 15:30:56 +00:00
Simplify zero initialization of DIEAttrs variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28a765542c
commit
e891775aa1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user