[IR] Remove an unnecessary cast (NFC) (#146274)
DT is already of DIType *.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user