diff options
Diffstat (limited to 'source/opt/workaround1209.cpp')
-rw-r--r-- | source/opt/workaround1209.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/opt/workaround1209.cpp b/source/opt/workaround1209.cpp index 0cf954af..d6e9d2cf 100644 --- a/source/opt/workaround1209.cpp +++ b/source/opt/workaround1209.cpp @@ -43,13 +43,13 @@ bool Workaround1209::RemoveOpUnreachableInLoops() { loop_merges.pop(); } - if (bb->tail()->opcode() == spv::Op::OpUnreachable) { + if (bb->tail()->opcode() == SpvOpUnreachable) { if (!loop_merges.empty()) { // We found an OpUnreachable inside a loop. // Replace it with an unconditional branch to the loop merge. context()->KillInst(&*bb->tail()); std::unique_ptr<Instruction> new_branch( - new Instruction(context(), spv::Op::OpBranch, 0, 0, + new Instruction(context(), SpvOpBranch, 0, 0, {{spv_operand_type_t::SPV_OPERAND_TYPE_ID, {loop_merges.top()}}})); context()->AnalyzeDefUse(&*new_branch); |