Skip to content

Commit 8ba7d80

Browse files
[llvm-dwarfdump] Remove an unnecessary cast (NFC) (#148117)
&DICtx is already of DWARFContext *.
1 parent 649347e commit 8ba7d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-dwarfdump/Statistics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ bool dwarfdump::collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
878878
DenseSet<LineTuple> UniqueLines;
879879
DenseSet<LineTuple> UniqueNonZeroLines;
880880

881-
for (const auto &CU : static_cast<DWARFContext *>(&DICtx)->compile_units()) {
881+
for (const auto &CU : DICtx.compile_units()) {
882882
if (DWARFDie CUDie = CU->getNonSkeletonUnitDIE(false)) {
883883
// This variable holds variable information for functions with
884884
// abstract_origin, but just for the current CU.

0 commit comments

Comments
 (0)