Skip to content

Commit

Permalink
fixup! Teach dead code eliminition to remove some calls of pure funct…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
bbannier committed May 16, 2023
1 parent 7b916a6 commit 38cb476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hilti/optimization/dead_code.hlt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function void fn_pure2() {}

type X = struct {};
function X fn_pure3() {
local X x;
return x;
local X x;
return x;
}

global uint<64> num_calls = 0;
Expand Down

0 comments on commit 38cb476

Please sign in to comment.