Skip to content

Commit ed430ce

Browse files
committed
C++/C#: Bind parameter in new case.
1 parent af364e6 commit ed430ce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedStmt.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ class TranslatedSwitchStmt extends TranslatedStmt {
657657
)
658658
or
659659
not stmt.hasDefaultCase() and
660+
tag = SwitchBranchTag() and
660661
kind instanceof DefaultEdge and
661662
result = getParent().getChildSuccessor(this)
662663
}

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/internal/TranslatedStmt.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ class TranslatedSwitchStmt extends TranslatedStmt {
836836
)
837837
or
838838
not exists(stmt.getDefaultCase()) and
839+
tag = SwitchBranchTag() and
839840
kind instanceof DefaultEdge and
840841
result = getParent().getChildSuccessor(this)
841842
}

0 commit comments

Comments
 (0)