C#: Avoid bad magic in UselessUpcast.ql

This commit is contained in:
Tom Hvitved
2020-08-17 14:31:34 +02:00
parent c7f776984f
commit 92bf830a8a

View File

@@ -31,7 +31,7 @@ class StaticCall extends Call {
}
/** Holds `t` has instance callable `c` as a member, with name `name`. */
pragma[noinline]
pragma[nomagic]
predicate hasInstanceCallable(ValueOrRefType t, InstanceCallable c, string name) {
t.hasMember(c) and
name = c.getName()