Core: FIx inconsistent compilation_context usage in helper/printk_formatter

This commit is contained in:
Pragyansh Chaturvedi
2026-03-28 19:02:16 +05:30
parent c04e32bd24
commit c22911daaf
3 changed files with 12 additions and 21 deletions

View File

@ -29,15 +29,7 @@ def get_ptr_from_arg(arg, compilation_context, builder, local_sym_tab):
return builder.load(sym.var)
# Use eval_expr for general case
val = eval_expr(
None,
compilation_context.module,
builder,
arg,
local_sym_tab,
compilation_context.map_sym_tab,
compilation_context.structs_sym_tab,
)
val = eval_expr(None, compilation_context, builder, arg, local_sym_tab)
if val and isinstance(val[0].type, ir.PointerType):
return val[0]