Replace FunctionBuilder's Drop impl with a finalize function. (#193)
* Replace FunctionBuilder's Drop impl with a finalize function. This has the advantage of not triggering assertion failures in the event of abandoning a partially-built function. It has the disadvantage of requiring users to call finalize() explicitly.
This commit is contained in:
@@ -128,6 +128,8 @@
|
||||
//! }
|
||||
//! builder.ins().jump(block1, &[]);
|
||||
//! builder.seal_block(block1);
|
||||
//!
|
||||
//! builder.finalize();
|
||||
//! }
|
||||
//!
|
||||
//! let flags = settings::Flags::new(&settings::builder());
|
||||
|
||||
Reference in New Issue
Block a user