[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:35 PDT 2026


================
@@ -62,10 +61,8 @@ ReplayInlineAdvisor::ReplayInlineAdvisor(
 
     auto CallSite = Pair.second.split(";").first;
 
-    if (Callee.empty() || Caller.empty() || CallSite.empty()) {
-      Context.emitError("Invalid remark format: " + Line);
-      return;
-    }
+    if (Callee.empty() || Caller.empty() || CallSite.empty())
+      reportFatalUsageError("Invalid remark format: " + Twine(Line));
----------------
aobolensk wrote:

Done

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


More information about the llvm-commits mailing list