[IR] Remove an unnecessary cast (NFC) (#146464)

The destructor does not return anything.
This commit is contained in:
Kazu Hirata
2025-07-01 07:32:29 -07:00
committed by GitHub
parent bb080107e4
commit 7622bf9d12

View File

@@ -699,7 +699,7 @@ MDNode::Header::~Header() {
}
MDOperand *O = reinterpret_cast<MDOperand *>(this);
for (MDOperand *E = O - SmallSize; O != E; --O)
(void)(O - 1)->~MDOperand();
(O - 1)->~MDOperand();
}
void *MDNode::Header::getSmallPtr() {