Skip to content

Commit 431ec62

Browse files
committed
Fixed build failure with latest main
1 parent dbc8d36 commit 431ec62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/DebugInfo/LogicalView/Core/LVReader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,14 +676,14 @@ Error LVReader::printDebugger() {
676676
return createStringError(std::make_error_code(std::errc::invalid_argument),
677677
"Error: No compute unit found.");
678678

679-
for (const LVElement *Child : *CU->getChildren()) {
680-
auto *Fn = dyn_cast<LVScopeFunction>(Child);
679+
for (const LVScope *ChildScope : *CU->getScopes()) {
680+
auto *Fn = dyn_cast<LVScopeFunction>(ChildScope);
681681
if (Fn) {
682682
const LVLines *Lines = Fn->getLines();
683683
// If there's no lines, this function has no body.
684684
if (!Lines)
685685
continue;
686-
outs() << "{Function}: " << Child->getName() << "\n";
686+
outs() << "{Function}: " << ChildScope->getName() << "\n";
687687

688688
DebuggerViewPrinter P(OS, Fn);
689689
P.Print();

0 commit comments

Comments
 (0)