Skip to content

Commit 8e1f70b

Browse files
committed
fix optimiser
1 parent e8e58a0 commit 8e1f70b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

source/backends/uxn.d

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,6 @@ class BackendUXN : CompilerBackend {
653653
}
654654

655655
override void CompileFuncAddr(FuncAddrNode node) {
656-
foreach (name, word ; words) {
657-
writeln(name);
658-
}
659-
660656
if (node.func !in words) {
661657
Error(node.error, "Function '%s' doesn't exist", node.func);
662658
}

source/codeRemover.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class CodeRemover {
5252
case NodeType.FuncAddr: {
5353
auto node = cast(FuncAddrNode) inode;
5454

55+
usedFunctions ~= node.func;
56+
5557
if (node.func !in functions) {
5658
continue;
5759
}

0 commit comments

Comments
 (0)