Commit 7c759da
committed
Fix CA1508 false positive for pattern expressions
Fixes #6048
`goto case DiscardPattern` had the required logic for setting the predicated value the pattern value in true branch of is expression, but it was also setting `predicateValueKind`, which is in turn used to identify redundant duplicate conditional checks. Latter is fixed by this change.1 parent 62b7d16 commit 7c759da
File tree
1 file changed
+8
-2
lines changed- src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
1568 | | - | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1569 | 1575 | | |
1570 | 1576 | | |
1571 | 1577 | | |
| |||
0 commit comments