internal/core/adt: hoist dependency code
It is important that the dependency handling code
is called after all allocations of closeContext have
been called. We are not aware that the allocCC
called in initCloneCC actually allocates new ones,
but just to be sure.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I29873c2f21df1e5d7b143433440be08b7e4f75ed
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207454
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>