Skip to content

Commit 65f647a

Browse files
committed
C#: Replace Ssa::UncertainDefinition with SsaUncertainWrite.
1 parent 9a7eb8d commit 65f647a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ module Ssa {
358358
*/
359359
private Definition getAPhiInputOrPriorDefinition() {
360360
result = this.(SsaPhiDefinition).getAnInput() or
361-
result = this.(UncertainDefinition).getPriorDefinition()
361+
result = this.(SsaUncertainWrite).getPriorDefinition()
362362
}
363363

364364
/**
@@ -686,12 +686,14 @@ module Ssa {
686686
}
687687

688688
/**
689+
* DEPRECATED: Use `SsaUncertainWrite` instead.
690+
*
689691
* An SSA definition that represents an uncertain update of the underlying
690692
* assignable. Either an explicit update that is uncertain (`ref` assignments
691693
* need not be certain), an implicit non-local update via a call, or an
692694
* uncertain update of the qualifier.
693695
*/
694-
class UncertainDefinition extends Definition, SsaImpl::UncertainWriteDefinition {
696+
deprecated class UncertainDefinition extends Definition, SsaImpl::UncertainWriteDefinition {
695697
/**
696698
* Gets the immediately preceding definition. Since this update is uncertain,
697699
* the value from the preceding definition might still be valid.

csharp/ql/lib/semmle/code/csharp/dataflow/internal/SsaImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ private module Cached {
912912
}
913913

914914
cached
915-
Definition uncertainWriteDefinitionInput(UncertainWriteDefinition def) {
915+
deprecated Definition uncertainWriteDefinitionInput(UncertainWriteDefinition def) {
916916
Impl::uncertainWriteDefinitionInput(def, result)
917917
}
918918

0 commit comments

Comments
 (0)