shader: Fix dependency on identity removal pass

This commit is contained in:
ReinUsesLisp 2021-04-01 01:07:51 -03:00 committed by ameerj
parent 5f22cd89e2
commit f1dd743731
2 changed files with 8 additions and 3 deletions

View file

@ -114,7 +114,7 @@ EmitContext::~EmitContext() = default;
Id EmitContext::Def(const IR::Value& value) {
if (!value.IsImmediate()) {
return value.Inst()->Definition<Id>();
return value.InstRecursive()->Definition<Id>();
}
switch (value.Type()) {
case IR::Type::Void: