[llvm] [llubi] Implements common library functions (PR #190147)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 12:07:17 PDT 2026


================
@@ -76,8 +78,9 @@ class InstExecutor : public InstVisitor<InstExecutor, void>,
   }
 
   void setResult(Instruction &I, AnyValue V) {
-    if (Status)
-      Status &= Handler.onInstructionExecuted(I, V);
+    if (!hasProgramExited())
+      if (!Handler.onInstructionExecuted(I, V))
+        requestProgramExit(ProgramExitInfo::ProgramExitKind::Failed);
----------------
nikic wrote:

```suggestion
        setFailed();
```
nit: It might make sense to add a helper for this, because it's by far the most common case.

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


More information about the llvm-commits mailing list