[llvm] [opt] Do not exit on first emitError (PR #194858)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 21:34:31 PDT 2026


================
@@ -632,34 +632,30 @@ Expected<Vocabulary> Vocabulary::fromFile(StringRef VocabFilePath,
 // IR2VecVocabAnalysis
 //===----------------------------------------------------------------------===//
 
-void IR2VecVocabAnalysis::emitError(Error Err, LLVMContext &Ctx) {
+void IR2VecVocabAnalysis::emitError(Error Err) {
   handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) {
-    Ctx.emitError("Error reading vocabulary: " + EI.message());
+    reportFatalUsageError(Twine("Error reading vocabulary: ") + EI.message());
----------------
aobolensk wrote:

Fixed

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


More information about the llvm-commits mailing list