shader: Fix structured control flow on KIL instructions
This could potentially leave unvisited blocks, leading to illegal phi nodes.
This commit is contained in:
parent
cdf0cc3869
commit
a806b29cb9
2 changed files with 7 additions and 3 deletions
|
@ -83,6 +83,7 @@ void IREmitter::SelectionMerge(Block* merge_block) {
|
|||
}
|
||||
|
||||
void IREmitter::Return() {
|
||||
block->SetReturn();
|
||||
Inst(Opcode::Return);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue