[llvm] [llvm-objdump] Optimize live element tracking (PR #158763)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 26 00:29:56 PST 2025


================
@@ -124,15 +124,18 @@ void LiveElementPrinter::addInlinedFunction(DWARFDie FuncDie,
   // Add the new element to the main vector.
   LiveElements.emplace_back(std::make_unique<InlinedFunction>(
       InlinedFuncName, U, FuncDie, InlinedFuncDie, Range));
+
+  LiveElement *LE = LiveElements.back().get();
+
----------------
jh7370 wrote:

Nit: Since the `LE` variable is tightly coupled to the next three statements, which don't have lines separating them, I think it makes sense from a readability perspective to delete this line.

https://github.com/llvm/llvm-project/pull/158763


More information about the llvm-commits mailing list