Skip to content

Commit c101415

Browse files
[DebugInfo] Remove an unnecessary cast (NFC) (#146217)
1 parent 25d7fd3 commit c101415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ Error LVScopeRoot::doPrintMatches(bool Split, raw_ostream &OS,
20972097
print(OS);
20982098

20992099
for (LVScope *Scope : *Scopes) {
2100-
getReader().setCompileUnit(const_cast<LVScope *>(Scope));
2100+
getReader().setCompileUnit(Scope);
21012101

21022102
// If 'Split', we use the scope name (CU name) as the ouput file; the
21032103
// delimiters in the pathname, must be replaced by a normal character.

0 commit comments

Comments
 (0)