Skip to content

Commit 31e06bc

Browse files
committed
C#: Remove SSA location overrides.
1 parent dc34b10 commit 31e06bc

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

  • csharp/ql/lib/semmle/code/csharp/dataflow

csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ module Ssa {
422422
deprecated final predicate isLiveOutRefParameterDefinition(Parameter p) {
423423
SsaImpl::isLiveOutRefParameterDefinition(this, p)
424424
}
425-
426-
/** Gets the location of this SSA definition. */
427-
override Location getLocation() { none() }
428425
}
429426

430427
/**
@@ -509,8 +506,6 @@ module Ssa {
509506
override Element getElement() { result = ad.getElement() }
510507

511508
override string toString() { result = "SSA def(" + this.getSourceVariable() + ")" }
512-
513-
override Location getLocation() { result = ad.getLocation() }
514509
}
515510

516511
/**
@@ -556,8 +551,6 @@ module Ssa {
556551
then result = "SSA capture def(" + this.getSourceVariable() + ")"
557552
else result = "SSA entry def(" + this.getSourceVariable() + ")"
558553
}
559-
560-
override Location getLocation() { result = this.getCallable().getLocation() }
561554
}
562555

563556
deprecated class ImplicitParameterDefinition = ParameterDefinition;
@@ -625,8 +618,6 @@ module Ssa {
625618
}
626619

627620
override string toString() { result = "SSA call def(" + this.getSourceVariable() + ")" }
628-
629-
override Location getLocation() { result = this.getCall().getLocation() }
630621
}
631622

632623
/**
@@ -649,8 +640,6 @@ module Ssa {
649640
final Definition getQualifierDefinition() { result = q }
650641

651642
override string toString() { result = "SSA qualifier def(" + this.getSourceVariable() + ")" }
652-
653-
override Location getLocation() { result = this.getQualifierDefinition().getLocation() }
654643
}
655644

656645
/**
@@ -689,16 +678,6 @@ module Ssa {
689678
}
690679

691680
override string toString() { result = "SSA phi(" + this.getSourceVariable() + ")" }
692-
693-
/*
694-
* The location of a phi node is the same as the location of the first node
695-
* in the basic block in which it is defined.
696-
*
697-
* Strictly speaking, the node is *before* the first node, but such a location
698-
* does not exist in the source program.
699-
*/
700-
701-
override Location getLocation() { result = this.getBasicBlock().getFirstNode().getLocation() }
702681
}
703682

704683
/**

0 commit comments

Comments
 (0)