File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/DebugInfo/LogicalView/Core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments