about summary refs log tree commit diff stats
path: root/miasm/core/sembuilder.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-08-26 06:57:39 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-08-31 07:50:01 +0200
commit6f5cb3bef180400001541f56f704f77da0d73429 (patch)
treeb26d1cfdd80fae8a7a51fd7468db09acd5cf3414 /miasm/core/sembuilder.py
parent80e40a3d2ca735db955807ad0605b43ca22e4e35 (diff)
downloadfocaccia-miasm-6f5cb3bef180400001541f56f704f77da0d73429.tar.gz
focaccia-miasm-6f5cb3bef180400001541f56f704f77da0d73429.zip
IRBlock take loc_db
Diffstat (limited to 'miasm/core/sembuilder.py')
-rw-r--r--miasm/core/sembuilder.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/miasm/core/sembuilder.py b/miasm/core/sembuilder.py
index efd80ce4..653ac46b 100644
--- a/miasm/core/sembuilder.py
+++ b/miasm/core/sembuilder.py
@@ -242,6 +242,9 @@ class SemBuilder(object):
                 IRDst = ast.Attribute(value=ast.Name(id='ir',
                                                      ctx=ast.Load()),
                                       attr='IRDst', ctx=ast.Load())
+                loc_db = ast.Attribute(value=ast.Name(id='ir',
+                                                     ctx=ast.Load()),
+                                      attr='loc_db', ctx=ast.Load())
                 blocks[-1][-1].append(ast.Call(func=ast.Name(id='ExprAssign',
                                                              ctx=ast.Load()),
                                                args=[IRDst, dst],
@@ -288,8 +291,11 @@ class SemBuilder(object):
 
                     sub_blocks[-1] = ast.Call(func=ast.Name(id='IRBlock',
                                                             ctx=ast.Load()),
-                                              args=[loc_if_name,
-                                                    assignblks],
+                                              args=[
+                                                  loc_db,
+                                                  loc_if_name,
+                                                  assignblks
+                                              ],
                                               keywords=[],
                                               starargs=None,
                                               kwargs=None)