Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 780010d commit da41cbcCopy full SHA for da41cbc
1 file changed
csharp/ql/src/semmle/code/csharp/ir/implementation/raw/internal/TranslatedStmt.qll
@@ -834,6 +834,10 @@ class TranslatedSwitchStmt extends TranslatedStmt {
834
kind = this.getCaseEdge(caseStmt) and
835
result = getTranslatedStmt(caseStmt).getFirstInstruction()
836
)
837
+ or
838
+ not exists(stmt.getDefaultCase()) and
839
+ kind instanceof DefaultEdge and
840
+ result = getParent().getChildSuccessor(this)
841
}
842
843
private EdgeKind getCaseEdge(CaseStmt caseStmt) {
0 commit comments