Skip to content

Commit 26b7617

Browse files
committed
C#: Fix getMadRepresentationSpecific
1 parent 44b734e commit 26b7617

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImplSpecific.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,9 @@ string getMadRepresentationSpecific(SummaryComponent sc) {
205205
or
206206
sc = TWithContentSummaryComponent(_) and result = "WithElement"
207207
or
208-
exists(ReturnKind rk |
208+
exists(OutRefReturnKind rk |
209209
sc = TReturnSummaryComponent(rk) and
210-
not rk = getReturnValueKind() and
211-
result = "ReturnValue[" + rk + "]"
210+
result = "Argument[" + rk.getPosition() + "]"
212211
)
213212
}
214213

0 commit comments

Comments
 (0)