[llvm] bd28fc0 - Apply clang-tidy fixes for readability-redundant-smartptr-get in DwarfTransformer.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 09:19:17 PDT 2022
Author: Kazu Hirata
Date: 2022-03-28T09:18:28-07:00
New Revision: bd28fc0c9bc6fb363c8cc9678a3be77b456be6e0
URL: https://github.com/llvm/llvm-project/commit/bd28fc0c9bc6fb363c8cc9678a3be77b456be6e0
DIFF: https://github.com/llvm/llvm-project/commit/bd28fc0c9bc6fb363c8cc9678a3be77b456be6e0.diff
LOG: Apply clang-tidy fixes for readability-redundant-smartptr-get in DwarfTransformer.cpp (NFC)
Added:
Modified:
llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp b/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
index 5abeefda62bcf..f2bbabb506e69 100644
--- a/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
+++ b/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
@@ -449,7 +449,7 @@ Error DwarfTransformer::convert(uint32_t NumThreads) {
// Parse all DWARF data from this thread, use the same string/file table
// for everything
for (const auto &CU : DICtx.compile_units()) {
- DWARFDie Die = getDie(*CU.get());
+ DWARFDie Die = getDie(*CU);
CUInfo CUI(DICtx, dyn_cast<DWARFCompileUnit>(CU.get()));
handleDie(Log, CUI, Die);
}
@@ -474,7 +474,7 @@ Error DwarfTransformer::convert(uint32_t NumThreads) {
// Now convert all DWARF to GSYM in a thread pool.
std::mutex LogMutex;
for (const auto &CU : DICtx.compile_units()) {
- DWARFDie Die = getDie(*CU.get());
+ DWARFDie Die = getDie(*CU);
if (Die) {
CUInfo CUI(DICtx, dyn_cast<DWARFCompileUnit>(CU.get()));
pool.async([this, CUI, &LogMutex, Die]() mutable {
More information about the llvm-commits
mailing list