about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/lib/llvm.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index b671b2485c0..9c37ca4a87f 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -1405,6 +1405,10 @@ obj builder(BuilderRef B, @mutable bool terminated) {
                                str::buf(""));
     }
 
+    fn is_terminated() -> bool {
+        ret *terminated;
+    }
+
     drop {
         llvm::LLVMDisposeBuilder(B);
     }