[llvm] [llvm] Errorize DebuginfodFetcher::fetch() for inspection at call-sites (NFC) (PR #191191)

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 04:00:13 PDT 2026


================
@@ -108,5 +109,8 @@ std::optional<std::string> BuildIDFetcher::fetch(BuildIDRef BuildID) const {
         return std::string(Path);
     }
   }
-  return std::nullopt;
+  return createStringError(
----------------
weliveindetail wrote:

I guess we would need a `raw_ostream &operator<<(raw_ostream &, const BuildIDRef &)` for that and we don't have one. Personally, I prefer the explicit notation.

https://github.com/llvm/llvm-project/pull/191191


More information about the llvm-commits mailing list