about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/ida/ctype_propagation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py
index 3dcd8b98..4cc8907a 100644
--- a/example/ida/ctype_propagation.py
+++ b/example/ida/ctype_propagation.py
@@ -314,7 +314,7 @@ def analyse_function():
     lbl_real_start = loc_db.get_offset_location(addr)
     lbl_head = loc_db.get_or_create_name_location("start")
 
-    first_block = asmcfg.label2block(lbl_real_start)
+    first_block = asmcfg.loc_key_to_block(lbl_real_start)
 
     assignblk_head = AssignBlock(
         [
@@ -323,7 +323,7 @@ def analyse_function():
         ],
         first_block.lines[0]
     )
-    irb_head = IRBlock(lbl_head, [assignblk_head])
+    irb_head = IRBlock(loc_db, lbl_head, [assignblk_head])
     ircfg.blocks[lbl_head] = irb_head
     ircfg.add_uniq_edge(lbl_head, lbl_real_start)