Skip to content

Commit cdccc1a

Browse files
committed
Remove needless typecasts
1 parent aab9dec commit cdccc1a

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ private module Cached {
422422
* interface.
423423
*/
424424
cached
425-
predicate reverseStepThroughInputOutputAlias(Node fromNode, Node toNode) {
425+
predicate reverseStepThroughInputOutputAlias(PostUpdateNode fromNode, PostUpdateNode toNode) {
426426
exists(Node fromPre, Node toPre |
427-
fromPre = fromNode.(PostUpdateNode).getPreUpdateNode() and
428-
toPre = toNode.(PostUpdateNode).getPreUpdateNode()
427+
fromPre = fromNode.getPreUpdateNode() and
428+
toPre = toNode.getPreUpdateNode()
429429
|
430430
exists(DataFlowCall c |
431431
// Does the language-specific simpleLocalFlowStep already model flow

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ private module Cached {
422422
* interface.
423423
*/
424424
cached
425-
predicate reverseStepThroughInputOutputAlias(Node fromNode, Node toNode) {
425+
predicate reverseStepThroughInputOutputAlias(PostUpdateNode fromNode, PostUpdateNode toNode) {
426426
exists(Node fromPre, Node toPre |
427-
fromPre = fromNode.(PostUpdateNode).getPreUpdateNode() and
428-
toPre = toNode.(PostUpdateNode).getPreUpdateNode()
427+
fromPre = fromNode.getPreUpdateNode() and
428+
toPre = toNode.getPreUpdateNode()
429429
|
430430
exists(DataFlowCall c |
431431
// Does the language-specific simpleLocalFlowStep already model flow

csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ private module Cached {
422422
* interface.
423423
*/
424424
cached
425-
predicate reverseStepThroughInputOutputAlias(Node fromNode, Node toNode) {
425+
predicate reverseStepThroughInputOutputAlias(PostUpdateNode fromNode, PostUpdateNode toNode) {
426426
exists(Node fromPre, Node toPre |
427-
fromPre = fromNode.(PostUpdateNode).getPreUpdateNode() and
428-
toPre = toNode.(PostUpdateNode).getPreUpdateNode()
427+
fromPre = fromNode.getPreUpdateNode() and
428+
toPre = toNode.getPreUpdateNode()
429429
|
430430
exists(DataFlowCall c |
431431
// Does the language-specific simpleLocalFlowStep already model flow

java/ql/src/semmle/code/java/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ private module Cached {
422422
* interface.
423423
*/
424424
cached
425-
predicate reverseStepThroughInputOutputAlias(Node fromNode, Node toNode) {
425+
predicate reverseStepThroughInputOutputAlias(PostUpdateNode fromNode, PostUpdateNode toNode) {
426426
exists(Node fromPre, Node toPre |
427-
fromPre = fromNode.(PostUpdateNode).getPreUpdateNode() and
428-
toPre = toNode.(PostUpdateNode).getPreUpdateNode()
427+
fromPre = fromNode.getPreUpdateNode() and
428+
toPre = toNode.getPreUpdateNode()
429429
|
430430
exists(DataFlowCall c |
431431
// Does the language-specific simpleLocalFlowStep already model flow

python/ql/src/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ private module Cached {
422422
* interface.
423423
*/
424424
cached
425-
predicate reverseStepThroughInputOutputAlias(Node fromNode, Node toNode) {
425+
predicate reverseStepThroughInputOutputAlias(PostUpdateNode fromNode, PostUpdateNode toNode) {
426426
exists(Node fromPre, Node toPre |
427-
fromPre = fromNode.(PostUpdateNode).getPreUpdateNode() and
428-
toPre = toNode.(PostUpdateNode).getPreUpdateNode()
427+
fromPre = fromNode.getPreUpdateNode() and
428+
toPre = toNode.getPreUpdateNode()
429429
|
430430
exists(DataFlowCall c |
431431
// Does the language-specific simpleLocalFlowStep already model flow

0 commit comments

Comments
 (0)