Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
dream189free committed Jul 21, 2023
1 parent 734486d commit 8a5cca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/lang/ast/ast_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 1525,7 @@ def build_If(ctx, node):
return node

with ctx.non_static_if_guard(node):
stmt_dbg_info = ctx.get_pos_info(node)
stmt_dbg_info = _ti_core.DebugInfo(ctx.get_pos_info(node))
impl.begin_frontend_if(ctx.ast_builder, node.test.ptr, stmt_dbg_info)
ctx.ast_builder.begin_frontend_if_true()
build_stmts(ctx, node.body)
Expand Down

0 comments on commit 8a5cca9

Please sign in to comment.