Skip to content

Commit 569e98d

Browse files
committed
Fixed rebase
1 parent cf61e2b commit 569e98d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ impl Context {
689689
/// let module = context.create_module("my_mod");
690690
/// let fn_type = void_type.fn_type(&[f32_type.into()], false);
691691
/// 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");
693693
///
694694
/// builder.position_at_end(&entry_block);
695695
///
@@ -730,7 +730,7 @@ impl Context {
730730
/// let module = context.create_module("my_mod");
731731
/// let fn_type = void_type.fn_type(&[f32_type.into()], false);
732732
/// 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");
734734
///
735735
/// builder.position_at_end(&entry_block);
736736
///

tests/all/test_values.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ fn test_metadata() {
504504
let fn_type = void_type.fn_type(&[bool_type.into()], false);
505505
let fn_value = module.add_function("my_func", fn_type, None);
506506

507-
let entry_block = fn_value.append_basic_block("entry");
507+
let entry_block = context.append_basic_block(fn_value, "entry");
508508

509509
builder.position_at_end(&entry_block);
510510

0 commit comments

Comments
 (0)