We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ac4fb commit 36eb765Copy full SHA for 36eb765
projects/eudsl-llvmpy/src/llvm/function.py
@@ -10,7 +10,7 @@
10
11
from . import (
12
add_function,
13
- append_basic_block,
+ append_basic_block_in_context,
14
position_builder_at_end,
15
TypeRef,
16
type_of,
@@ -108,7 +108,9 @@ def emit(self, *call_args):
108
if self._is_decl():
109
return
110
111
- entry_bb = append_basic_block(function, self.entry_bb_name)
+ entry_bb = append_basic_block_in_context(
112
+ ctx.context, function, self.entry_bb_name
113
+ )
114
position_builder_at_end(ctx.builder, entry_bb)
115
116
params = [get_param(function, i) for i in range(len(input_types))]
0 commit comments