mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove DeclValidationRAII
The last real client was precedence group validation.
This commit is contained in:
@@ -2783,8 +2783,13 @@ bool ValueDecl::hasInterfaceType() const {
|
||||
return !TypeAndAccess.getPointer().isNull();
|
||||
}
|
||||
|
||||
static bool isComputingInterfaceType(const ValueDecl *VD) {
|
||||
return VD->getASTContext().evaluator.hasActiveRequest(
|
||||
InterfaceTypeRequest{const_cast<ValueDecl *>(VD)});
|
||||
}
|
||||
|
||||
bool ValueDecl::isRecursiveValidation() const {
|
||||
if (hasValidationStarted() && !hasInterfaceType())
|
||||
if (isComputingInterfaceType(this) && !hasInterfaceType())
|
||||
return true;
|
||||
|
||||
if (auto *vd = dyn_cast<VarDecl>(this))
|
||||
|
||||
Reference in New Issue
Block a user