diff options
| author | 2021-04-17 16:40:35 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 50f8007172ce143a632270510f96093c82018952 (patch) | |
| tree | 6ffa823c458ef26f717a18c4e5216c2048272ac3 /src/shader_recompiler/frontend/ir/microinstruction.cpp | |
| parent | shader: Fix memory barriers (diff) | |
| download | yuzu-50f8007172ce143a632270510f96093c82018952.tar.gz yuzu-50f8007172ce143a632270510f96093c82018952.tar.xz yuzu-50f8007172ce143a632270510f96093c82018952.zip | |
shader: Fix Phi node types
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/microinstruction.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp index efa426808..7555ac00a 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) { | |||
| 275 | if (!value.IsImmediate()) { | 275 | if (!value.IsImmediate()) { |
| 276 | Use(value); | 276 | Use(value); |
| 277 | } | 277 | } |
| 278 | if (Flags<IR::Type>() == IR::Type::Void) { | ||
| 279 | // Set the type of the phi node | ||
| 280 | SetFlags<IR::Type>(value.Type()); | ||
| 281 | } | ||
| 282 | phi_args.emplace_back(predecessor, value); | 278 | phi_args.emplace_back(predecessor, value); |
| 283 | } | 279 | } |
| 284 | 280 | ||