Skip to content

Commit 80e8015

Browse files
committed
Inline late and remove manual magic
1 parent c2aee37 commit 80e8015

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,9 @@ module SourceSinkInterpretationInput implements
279279
* check that the specific name given by `sse.hasTypeInfo` refers to either `qual`'s type
280280
* or to a type it embeds.
281281
*/
282+
bindingset[sse, qual]
283+
pragma[inline_late]
282284
private predicate elementAppliesToQualifier(SourceOrSinkElement sse, DataFlow::Node qual) {
283-
(
284-
exists(DataFlow::CallNode cn | cn.getReceiver() = qual and cn.getTarget() = sse.asEntity())
285-
or
286-
exists(DataFlow::FieldReadNode frn | frn.getBase() = qual and frn.getField() = sse.asEntity())
287-
or
288-
exists(DataFlow::Write fw | fw.writesField(qual, sse.asEntity(), _))
289-
) and
290285
exists(
291286
string pkg, string typename, boolean subtypes, Type syntacticQualBaseType, Type targetType
292287
|

0 commit comments

Comments
 (0)