Skip to content

Commit 6994ba9

Browse files
authored
Merge pull request github#1309 from hvitved/csharp/get-explicit-arg-nomagic
Add `pragma[nomagic]` to `getExplicitArgument()`
2 parents 649979d + 272545a commit 6994ba9

File tree

1 file changed

+1
-3
lines changed
  • csharp/ql/src/semmle/code/csharp/exprs

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,13 @@ class Call extends DotNet::Call, Expr, @call {
108108
)
109109
}
110110

111-
// predicate folding to get proper join-order
112111
pragma[noinline]
113112
private Expr getImplicitArgument(int pos) {
114113
result = getArgument(pos) and
115114
not exists(result.getExplicitArgumentName())
116115
}
117116

118-
// predicate folding to get proper join-order
119-
pragma[noinline]
117+
pragma[nomagic]
120118
private Expr getExplicitArgument(string name) {
121119
result = getAnArgument() and
122120
result.getExplicitArgumentName() = name

0 commit comments

Comments
 (0)