Add a function that determines whether the block is terminated

This commit is contained in:
Tim Chevalier 2011-07-02 21:50:42 -07:00
parent 434b199362
commit f0fad0dca5

View File

@ -1405,6 +1405,10 @@ obj builder(BuilderRef B, @mutable bool terminated) {
str::buf(""));
}
fn is_terminated() -> bool {
ret *terminated;
}
drop {
llvm::LLVMDisposeBuilder(B);
}