fix(tvix/eval): pass correct slot when compiling attr values

Change-Id: I90722d59dea4c7694eb5a7cf505db31196ba6c6c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6501
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-09-11 15:01:53 +03:00 committed by tazjin
parent 677d4e6881
commit 43ec68d5ae

View file

@ -95,7 +95,7 @@ impl Compiler<'_, '_> {
// is constructed at runtime.
let value_span = self.span_for(&kv.value().unwrap());
let value_slot = self.scope_mut().declare_phantom(value_span, false);
self.compile(slot, kv.value().unwrap());
self.compile(value_slot, kv.value().unwrap());
self.scope_mut().mark_initialised(value_slot);
}