shader: Fix Phi node types

This commit is contained in:
ReinUsesLisp 2021-04-17 16:40:35 -03:00 committed by ameerj
parent 0a0818c025
commit 50f8007172
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}