Skip to content

Commit 06bc8ad

Browse files
committed
C++: (Bugfix 2) Don't remap isParameterOf.
1 parent 662e749 commit 06bc8ad

File tree

2 files changed

+159
-8
lines changed

2 files changed

+159
-8
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,12 +1328,7 @@ abstract private class AbstractParameterNode extends Node {
13281328
final predicate isParameterOf(DataFlowCallable c, ParameterPosition pos) {
13291329
this.isSummaryParameterOf(c.asSummarizedCallable(), pos)
13301330
or
1331-
exists(Function f | this.isSourceParameterOf(f, pos) |
1332-
not exists(TSummarizedCallable(f)) and
1333-
c.asSourceCallable() = f
1334-
or
1335-
c.asSummarizedCallable() = f
1336-
)
1331+
this.isSourceParameterOf(c.asSourceCallable(), pos)
13371332
}
13381333

13391334
/** Gets the `Parameter` associated with this node, if it exists. */

0 commit comments

Comments
 (0)