C#: Replace Ssa::UncertainDefinition with SsaUncertainWrite.

This commit is contained in:
Anders Schack-Mulligen
2026-04-27 15:07:51 +02:00
parent 9a7eb8dfb9
commit 65f647a8c0
2 changed files with 5 additions and 3 deletions

View File

@@ -358,7 +358,7 @@ module Ssa {
*/
private Definition getAPhiInputOrPriorDefinition() {
result = this.(SsaPhiDefinition).getAnInput() or
result = this.(UncertainDefinition).getPriorDefinition()
result = this.(SsaUncertainWrite).getPriorDefinition()
}
/**
@@ -686,12 +686,14 @@ module Ssa {
}
/**
* DEPRECATED: Use `SsaUncertainWrite` instead.
*
* An SSA definition that represents an uncertain update of the underlying
* assignable. Either an explicit update that is uncertain (`ref` assignments
* need not be certain), an implicit non-local update via a call, or an
* uncertain update of the qualifier.
*/
class UncertainDefinition extends Definition, SsaImpl::UncertainWriteDefinition {
deprecated class UncertainDefinition extends Definition, SsaImpl::UncertainWriteDefinition {
/**
* Gets the immediately preceding definition. Since this update is uncertain,
* the value from the preceding definition might still be valid.

View File

@@ -912,7 +912,7 @@ private module Cached {
}
cached
Definition uncertainWriteDefinitionInput(UncertainWriteDefinition def) {
deprecated Definition uncertainWriteDefinitionInput(UncertainWriteDefinition def) {
Impl::uncertainWriteDefinitionInput(def, result)
}