File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,14 @@ ValueOrRefType getAReferencedType(Type t) {
3434
3535predicate isTypeExternallyInitialized ( ValueOrRefType t ) {
3636 // The type got created via a call to PtrToStructure().
37- exists ( MethodCall mc |
37+ exists ( MethodCall mc , Type t0 , Expr arg |
3838 mc .getTarget ( ) = any ( SystemRuntimeInteropServicesMarshalClass c ) .getPtrToStructureTypeMethod ( ) and
39- t = getAReferencedType ( mc .getArgument ( 1 ) .( TypeofExpr ) .getTypeAccess ( ) .getTarget ( ) )
40- )
41- or
42- // The type got created via a call to PtrToStructure().
43- exists ( MethodCall mc |
44- mc .getTarget ( ) = any ( SystemRuntimeInteropServicesMarshalClass c ) .getPtrToStructureObjectMethod ( ) and
45- t = getAReferencedType ( mc .getArgument ( 1 ) .getType ( ) )
39+ t = getAReferencedType ( t0 ) and
40+ arg = mc .getArgument ( 1 )
41+ |
42+ t0 = arg .( TypeofExpr ) .getTypeAccess ( ) .getTarget ( )
43+ or
44+ t0 = arg .getType ( )
4645 )
4746 or
4847 // An extern method exists which could initialize the type.
You can’t perform that action at this time.
0 commit comments