[PATCH] D70759: [llvm-symbolizer] Support debug file lookup using build ID

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 23:36:18 PST 2020


dblaikie added inline comments.


================
Comment at: llvm/lib/DebugInfo/Symbolize/Symbolize.cpp:303
+        return N.getDesc();
+  }
+  return {};
----------------
dblaikie wrote:
> vsk wrote:
> > Does `Err` need to be checked here, after the loop?
> > 
> > From `notes_begin`:
> > 
> >   /// \param Err [out] an error to support fallible iteration, which should
> >   ///  be checked after iteration ends.
> > 
> Looks like it to me.
> 
> A test case would be good/necessary, though - @lhames - you wouldn't happen to know a good way to produce an object file with this problem, by chance?
Also is there anything to be done about this idiom to make it more robust like other uses of llvm::Error? So that this usage would fail even in Success-only executions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70759/new/

https://reviews.llvm.org/D70759





More information about the llvm-commits mailing list