mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #1309 from hvitved/csharp/get-explicit-arg-nomagic
Add `pragma[nomagic]` to `getExplicitArgument()`
This commit is contained in:
@@ -108,15 +108,13 @@ class Call extends DotNet::Call, Expr, @call {
|
||||
)
|
||||
}
|
||||
|
||||
// predicate folding to get proper join-order
|
||||
pragma[noinline]
|
||||
private Expr getImplicitArgument(int pos) {
|
||||
result = getArgument(pos) and
|
||||
not exists(result.getExplicitArgumentName())
|
||||
}
|
||||
|
||||
// predicate folding to get proper join-order
|
||||
pragma[noinline]
|
||||
pragma[nomagic]
|
||||
private Expr getExplicitArgument(string name) {
|
||||
result = getAnArgument() and
|
||||
result.getExplicitArgumentName() = name
|
||||
|
||||
Reference in New Issue
Block a user