diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index b0f7e2269..3b3fea50c 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -114,7 +114,7 @@ EmitContext::~EmitContext() = default; | |||
| 114 | 114 | ||
| 115 | Id EmitContext::Def(const IR::Value& value) { | 115 | Id EmitContext::Def(const IR::Value& value) { |
| 116 | if (!value.IsImmediate()) { | 116 | if (!value.IsImmediate()) { |
| 117 | return value.Inst()->Definition<Id>(); | 117 | return value.InstRecursive()->Definition<Id>(); |
| 118 | } | 118 | } |
| 119 | switch (value.Type()) { | 119 | switch (value.Type()) { |
| 120 | case IR::Type::Void: | 120 | case IR::Type::Void: |