[llvm] [DebugInfo] Remove an unnecessary cast (NFC) (PR #146217)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 28 08:46:31 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146217
None
>From 279cbfa20e5c08bb09ab7b436c78cb16a6fb16d3 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 27 Jun 2025 23:00:17 -0700
Subject: [PATCH] [DebugInfo] Remove an unnecessary cast (NFC)
---
llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp b/llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp
index 55880fab5e88e..93a567e89f774 100644
--- a/llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp
+++ b/llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp
@@ -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.
More information about the llvm-commits
mailing list