Skip to content

Commit fe0f766

Browse files
authored
Merge pull request github#13966 from hvitved/csharp/mad-repr-fix
C#: Fix `getMadRepresentationSpecific`
2 parents 1fb4e13 + 26b7617 commit fe0f766

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)