From 7cba4c758244d8c58f4aca999c800b7282579a08 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 8 Jul 2025 20:15:13 -0700 Subject: [PATCH] [llvm-dwarfdump] Remove an unnecessary cast (NFC) &DICtx is already of DWARFContext *. --- llvm/tools/llvm-dwarfdump/Statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-dwarfdump/Statistics.cpp b/llvm/tools/llvm-dwarfdump/Statistics.cpp index f92b2b55fa8dc..a705e7d51d874 100644 --- a/llvm/tools/llvm-dwarfdump/Statistics.cpp +++ b/llvm/tools/llvm-dwarfdump/Statistics.cpp @@ -878,7 +878,7 @@ bool dwarfdump::collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx, DenseSet UniqueLines; DenseSet UniqueNonZeroLines; - for (const auto &CU : static_cast(&DICtx)->compile_units()) { + for (const auto &CU : DICtx.compile_units()) { if (DWARFDie CUDie = CU->getNonSkeletonUnitDIE(false)) { // This variable holds variable information for functions with // abstract_origin, but just for the current CU.