File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ impl Context {
689
689
/// let module = context.create_module("my_mod");
690
690
/// let fn_type = void_type.fn_type(&[f32_type.into()], false);
691
691
/// let fn_value = module.add_function("my_func", fn_type, None);
692
- /// let entry_block = fn_value .append_basic_block("entry");
692
+ /// let entry_block = context .append_basic_block(fn_value, "entry");
693
693
///
694
694
/// builder.position_at_end(&entry_block);
695
695
///
@@ -730,7 +730,7 @@ impl Context {
730
730
/// let module = context.create_module("my_mod");
731
731
/// let fn_type = void_type.fn_type(&[f32_type.into()], false);
732
732
/// let fn_value = module.add_function("my_func", fn_type, None);
733
- /// let entry_block = fn_value .append_basic_block("entry");
733
+ /// let entry_block = context .append_basic_block(fn_value, "entry");
734
734
///
735
735
/// builder.position_at_end(&entry_block);
736
736
///
Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ fn test_metadata() {
504
504
let fn_type = void_type. fn_type ( & [ bool_type. into ( ) ] , false ) ;
505
505
let fn_value = module. add_function ( "my_func" , fn_type, None ) ;
506
506
507
- let entry_block = fn_value . append_basic_block ( "entry" ) ;
507
+ let entry_block = context . append_basic_block ( fn_value , "entry" ) ;
508
508
509
509
builder. position_at_end ( & entry_block) ;
510
510
You can’t perform that action at this time.
0 commit comments