From 2d4bbd83e6f29850558fc6d741a93b5bf0d9bbb9 Mon Sep 17 00:00:00 2001
From: Fernando Sahmkow <fsahmkow27@gmail.com>
Date: Tue, 2 Nov 2021 00:59:25 +0100
Subject: [PATCH] Shader Cahe: Fix Phi Nodes on GLASM.

---
 .../backend/glasm/emit_glasm_not_implemented.cpp                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
index ff64c69247..e537f60736 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp
@@ -18,7 +18,7 @@ namespace Shader::Backend::GLASM {
 #define NotImplemented() throw NotImplementedException("GLASM instruction {}", __LINE__)
 
 static void DefinePhi(EmitContext& ctx, IR::Inst& phi) {
-    switch (phi.Arg(0).Type()) {
+    switch (phi.Type()) {
     case IR::Type::U1:
     case IR::Type::U32:
     case IR::Type::F32: