C++: Fix IR generation and accept output

This commit is contained in:
Mathias Vorreiter Pedersen
2020-02-20 15:37:02 +01:00
parent 051d574ffd
commit c5f38eecfe
2 changed files with 13 additions and 0 deletions

View File

@@ -655,6 +655,10 @@ class TranslatedSwitchStmt extends TranslatedStmt {
kind = getCaseEdge(switchCase) and
result = getTranslatedStmt(switchCase).getFirstInstruction()
)
or
not stmt.hasDefaultCase() and
kind instanceof GotoEdge and
result = getParent().getChildSuccessor(this)
}
override Instruction getChildSuccessor(TranslatedElement child) {