From 50f8007172ce143a632270510f96093c82018952 Mon Sep 17 00:00:00 2001
From: ReinUsesLisp <reinuseslisp@airmail.cc>
Date: Sat, 17 Apr 2021 16:40:35 -0300
Subject: shader: Fix Phi node types

---
 src/shader_recompiler/frontend/ir/microinstruction.cpp | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'src/shader_recompiler/frontend/ir/microinstruction.cpp')

diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index efa4268089..7555ac00a1 100644
--- a/src/shader_recompiler/frontend/ir/microinstruction.cpp
+++ b/src/shader_recompiler/frontend/ir/microinstruction.cpp
@@ -275,10 +275,6 @@ void Inst::AddPhiOperand(Block* predecessor, const Value& value) {
     if (!value.IsImmediate()) {
         Use(value);
     }
-    if (Flags<IR::Type>() == IR::Type::Void) {
-        // Set the type of the phi node
-        SetFlags<IR::Type>(value.Type());
-    }
     phi_args.emplace_back(predecessor, value);
 }
 
-- 
cgit v1.2.3-70-g09d2