mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +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.
|
// Add all of the attributes for \param Die to the hash.
|
||||||
void DIEHash::addAttributes(DIE *Die) {
|
void DIEHash::addAttributes(DIE *Die) {
|
||||||
DIEAttrs Attrs;
|
DIEAttrs Attrs = {};
|
||||||
memset(&Attrs, 0, sizeof(Attrs));
|
|
||||||
collectAttributes(Die, Attrs);
|
collectAttributes(Die, Attrs);
|
||||||
hashAttributes(Attrs);
|
hashAttributes(Attrs);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user