Skip to content
Snippets Groups Projects
Commit 6c92f17c authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] The var_subst_map is a member of codegen_state not of the ecm

When using CInstructions with plain CTarget() as code generation target,
an AttributeError was thrown when evaluating the if clause here.
This commit uses the var_subst_map of the codegen_state instead.
parent 79ac3681
No related branches found
No related tags found
Loading
......@@ -232,7 +232,7 @@ def generate_c_instruction_code(kernel, insn, codegen_state):
from pymbolic.primitives import Variable
for name, iname_expr in insn.iname_exprs:
if (isinstance(iname_expr, Variable)
and name not in ecm.var_subst_map):
and name not in codegen_state.var_subst_map):
# No need, the bare symbol will work
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment