[clang][dataflow][NFC] Remove last use of deprecated ctor

Use a delegating constructor to remove the last use of the deprecated
ctor of `TypeErasedDataflowAnalysis`, and then delete it.

Differential Revision: https://reviews.llvm.org/D130653
This commit is contained in:
Eric Li 2022-07-27 14:17:14 -04:00
parent 876af563e7
commit 5e28923e33
2 changed files with 2 additions and 5 deletions

View File

@ -66,7 +66,8 @@ public:
/// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
explicit DataflowAnalysis(ASTContext &Context, bool ApplyBuiltinTransfer)
: TypeErasedDataflowAnalysis(ApplyBuiltinTransfer), Context(Context) {}
: DataflowAnalysis(Context, DataflowAnalysisOptions{ApplyBuiltinTransfer,
TransferOptions{}}) {}
explicit DataflowAnalysis(ASTContext &Context,
DataflowAnalysisOptions Options)

View File

@ -59,10 +59,6 @@ class TypeErasedDataflowAnalysis : public Environment::ValueModel {
public:
TypeErasedDataflowAnalysis() : Options({}) {}
/// Deprecated. Use the `DataflowAnalysisOptions` constructor instead.
TypeErasedDataflowAnalysis(bool ApplyBuiltinTransfer)
: Options({ApplyBuiltinTransfer, TransferOptions{}}) {}
TypeErasedDataflowAnalysis(DataflowAnalysisOptions Options)
: Options(Options) {}