File tree Expand file tree Collapse file tree
csharp/ql/lib/semmle/code/csharp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -500,11 +500,7 @@ class AssignableDefinition extends TAssignableDefinition {
500500 */
501501 pragma [ nomagic]
502502 AssignableRead getAFirstRead ( ) {
503- exists ( ControlFlowNode cfn | cfn = result .getControlFlowNode ( ) |
504- exists ( Ssa:: ExplicitDefinition def | result = def .getAFirstReadAtNode ( cfn ) |
505- this = def .getADefinition ( )
506- )
507- )
503+ exists ( Ssa:: ExplicitDefinition def | result = def .getAFirstRead ( ) | this = def .getADefinition ( ) )
508504 }
509505
510506 /** Gets a textual representation of this assignable definition. */
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ private Ssa::Definition getAnUltimateDefinition(Ssa::Definition def) {
241241 * exception.
242242 */
243243private predicate defReaches ( Ssa:: Definition def , ControlFlowNode cfn ) {
244- exists ( def .getAFirstReadAtNode ( cfn ) )
244+ def .getAFirstRead ( ) . getControlFlowNode ( ) = cfn
245245 or
246246 exists ( ControlFlowNode mid | defReaches ( def , mid ) |
247247 SsaImpl:: adjacentReadPairSameVar ( _, mid , cfn ) and
You can’t perform that action at this time.
0 commit comments