Add a function that determines whether the block is terminated
This commit is contained in:
parent
434b199362
commit
f0fad0dca5
@ -1405,6 +1405,10 @@ obj builder(BuilderRef B, @mutable bool terminated) {
|
||||
str::buf(""));
|
||||
}
|
||||
|
||||
fn is_terminated() -> bool {
|
||||
ret *terminated;
|
||||
}
|
||||
|
||||
drop {
|
||||
llvm::LLVMDisposeBuilder(B);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user