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

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 04:48:47 PDT 2026


Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/191191 at github.com>


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

I thought it was just some int typdef but it's `typedef ArrayRef<uint8_t> BuildIDRef;` so you're right, you need a handler either way. Couldn't just `{0}` it.

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


More information about the llvm-commits mailing list