Skip to content

Commit

Permalink
Remove value clearing since it no longer has an effect
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Mar 25, 2024
1 parent 8c0590f commit c82623a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libexpr/value.hh
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,7 @@ public:

inline void finishValue(InternalType newType, Payload newPayload)
{
/* After overwriting thunk/app values, be sure to clear
pointers in the Value to ensure that the target isn't kept
alive unnecessarily. */
payload.app.left = payload.app.right = 0;

payload = newPayload;

internalType = newType;
}

Expand Down

0 comments on commit c82623a

Please sign in to comment.