Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f7dc51

Browse files
committed
C#: Fix performance issue in isValidExplicitParamsType()
1 parent 28261d6 commit 0f7dc51

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • csharp/ql/src/semmle/code/csharp/exprs

csharp/ql/src/semmle/code/csharp/exprs/Call.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ class Call extends DotNet::Call, Expr, @call {
287287
* }
288288
* ```
289289
*/
290+
pragma[nomagic]
290291
private predicate isValidExplicitParamsType(Parameter p, Type t) {
291292
p.isParams() and
292293
t.isImplicitlyConvertibleTo(p.getType())

0 commit comments

Comments
 (0)