Skip to content

Commit 36eb765

Browse files
committed
no more append_basic_block
1 parent d2ac4fb commit 36eb765

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/eudsl-llvmpy/src/llvm/function.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from . import (
1212
add_function,
13-
append_basic_block,
13+
append_basic_block_in_context,
1414
position_builder_at_end,
1515
TypeRef,
1616
type_of,
@@ -108,7 +108,9 @@ def emit(self, *call_args):
108108
if self._is_decl():
109109
return
110110

111-
entry_bb = append_basic_block(function, self.entry_bb_name)
111+
entry_bb = append_basic_block_in_context(
112+
ctx.context, function, self.entry_bb_name
113+
)
112114
position_builder_at_end(ctx.builder, entry_bb)
113115

114116
params = [get_param(function, i) for i in range(len(input_types))]

0 commit comments

Comments
 (0)