Skip to content

Commit f0fad0d

Browse files
committed
Add a function that determines whether the block is terminated
1 parent 434b199 commit f0fad0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/comp/lib/llvm.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,10 @@ obj builder(BuilderRef B, @mutable bool terminated) {
14051405
str::buf(""));
14061406
}
14071407

1408+
fn is_terminated() -> bool {
1409+
ret *terminated;
1410+
}
1411+
14081412
drop {
14091413
llvm::LLVMDisposeBuilder(B);
14101414
}

0 commit comments

Comments
 (0)