[DebugInfo] Remove an unnecessary cast (NFC) (#146217)

This commit is contained in:
Kazu Hirata
2025-06-28 13:03:38 -07:00
committed by GitHub
parent 25d7fd35b2
commit c101415820

View File

@@ -2097,7 +2097,7 @@ Error LVScopeRoot::doPrintMatches(bool Split, raw_ostream &OS,
print(OS);
for (LVScope *Scope : *Scopes) {
getReader().setCompileUnit(const_cast<LVScope *>(Scope));
getReader().setCompileUnit(Scope);
// If 'Split', we use the scope name (CU name) as the ouput file; the
// delimiters in the pathname, must be replaced by a normal character.