Skip to content

Commit 272545a

Browse files
committed
Add pragma[nomagic] to getExplicitArgument()
1 parent 639d715 commit 272545a

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)