diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-08-26 06:57:39 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-08-31 07:50:01 +0200 |
| commit | 6f5cb3bef180400001541f56f704f77da0d73429 (patch) | |
| tree | b26d1cfdd80fae8a7a51fd7468db09acd5cf3414 /miasm/core/sembuilder.py | |
| parent | 80e40a3d2ca735db955807ad0605b43ca22e4e35 (diff) | |
| download | focaccia-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.py | 10 |
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) |