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

DT is already of DIType *.
This commit is contained in:
Kazu Hirata
2025-06-29 19:19:31 -07:00
committed by GitHub
parent d4b5905a25
commit 678ccd5e53

View File

@@ -376,7 +376,7 @@ bool DebugInfoFinder::addType(DIType *DT) {
if (!NodesSeen.insert(DT).second)
return false;
TYs.push_back(const_cast<DIType *>(DT));
TYs.push_back(DT);
return true;
}