Skip to content

Commit 13100b1

Browse files
committed
C++: Fix unintentionally changing the type of AdditionalCallTarget.viableTarget.
1 parent 66f88d9 commit 13100b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ DataFlowCallable viableCallable(DataFlowCall call) {
4040
result = defaultViableCallable(call)
4141
or
4242
// Additional call targets
43-
result =
43+
result.getUnderlyingCallable() =
4444
any(AdditionalCallTarget additional)
4545
.viableTarget(call.asCallInstruction().getUnconvertedResultExpression())
4646
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,5 +2681,5 @@ class AdditionalCallTarget extends Unit {
26812681
/**
26822682
* Gets a viable target for `call`.
26832683
*/
2684-
abstract DataFlowCallable viableTarget(Call call);
2684+
abstract Declaration viableTarget(Call call);
26852685
}

0 commit comments

Comments
 (0)