aboutsummaryrefslogtreecommitdiff
path: root/src/ir_opt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-01-18 12:12:18 +0000
committergingerBill <bill@gingerbill.org>2018-01-18 12:12:18 +0000
commitd90008cc524ae7075a91fa763def3918adb61fc6 (patch)
tree99648ff858f9da9d98f30c99da25d62f23c74c9d /src/ir_opt.cpp
parentdbf8f9ab382951c4567ad006f8f5305c8716a826 (diff)
Add basic debug information needed for stepping over code
Diffstat (limited to 'src/ir_opt.cpp')
-rw-r--r--src/ir_opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir_opt.cpp b/src/ir_opt.cpp
index af7189efc..0ec3838bd 100644
--- a/src/ir_opt.cpp
+++ b/src/ir_opt.cpp
@@ -232,7 +232,7 @@ bool ir_opt_block_fusion(irProcedure *proc, irBlock *a) {
array_pop(&a->instrs); // Remove branch at end
for_array(i, b->instrs) {
array_add(&a->instrs, b->instrs[i]);
- ir_set_instr_parent(b->instrs[i], a);
+ ir_set_instr_block(b->instrs[i], a);
}
array_clear(&a->succs);