Skip to content

Commit

Permalink
Apply clang-tidy fixes for readability-redundant-smartptr-get in Dwar…
Browse files Browse the repository at this point in the history
…fTransformer.cpp (NFC)
  • Loading branch information
kazutakahirata committed Mar 28, 2022
1 parent 2bc684c commit bd28fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
Expand Up @@ -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);
}
Expand All @@ -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 {
Expand Down

0 comments on commit bd28fc0

Please sign in to comment.