shader: Fix Phi node types
This commit is contained in:
parent
0a0818c025
commit
50f8007172
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue