From 12158ceadfaa9b8100fc727b9db03d3f3f6d6d3b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 12 Mar 2013 10:31:56 +0100 Subject: [PATCH] fhdl/tracer: recognize LOAD_DEREF opcode --- migen/fhdl/tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/tracer.py b/migen/fhdl/tracer.py index 2b1bafd92..53cc36634 100644 --- a/migen/fhdl/tracer.py +++ b/migen/fhdl/tracer.py @@ -19,7 +19,7 @@ def get_var_name(frame): elif opc == "STORE_DEREF": name_index = int(code.co_code[index+1]) return code.co_cellvars[name_index] - elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST": + elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST" or opc == "LOAD_DEREF": index += 3 elif opc == "DUP_TOP": index += 1