This commit is contained in:
ALEXks
2023-10-10 16:38:27 +03:00
parent 020f2a1109
commit c4f222fe34
2 changed files with 4 additions and 2 deletions

View File

@@ -1316,7 +1316,9 @@ static SgStatement* processStatement(SgStatement* st, vector<IR_Block*>& blocks,
{
SgStatement* body = select->defOption()->lexNext();
while (body != lastSelect)
while (body != lastSelect &&
body->variant() != CASE_NODE &&
body->variant() != DEFAULT_NODE)
{
const int firstInstr = blocks.size();
body = processLabel(processStatement(body, blocks, labels, func, commonVars, settings), firstInstr, blocks, labels);

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2224"
#define VERSION_SPF "2225"