Skip to content

Commit

Permalink
Remove TailCall.TailPosition.NotTail metadata.
Browse files Browse the repository at this point in the history
If IR element is not in tail position, there is simply no metadata.
  • Loading branch information
Akirathan committed Oct 10, 2024
1 parent 2843dcb commit 831804c
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 143 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ protected void writeObject(TailCall.TailPosition obj, Output out) throws IOExcep
@Override
protected TailCall.TailPosition readObject(Input in)
throws IOException, ClassNotFoundException {
var b = in.readBoolean();
return b
? org.enso.compiler.pass.analyse.TailCall$TailPosition$Tail$.MODULE$
: org.enso.compiler.pass.analyse.TailCall$TailPosition$NotTail$.MODULE$;
in.readBoolean();
return org.enso.compiler.pass.analyse.TailCall$TailPosition$Tail$.MODULE$;
}
}

Expand Down
Loading

0 comments on commit 831804c

Please sign in to comment.