We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14d9011 + 5fe38b6 commit 42e07aaCopy full SHA for 42e07aa
lib/AST/Decl.cpp
@@ -2812,11 +2812,12 @@ Type ValueDecl::getInterfaceType() const {
2812
return TypeAndAccess.getPointer();
2813
}
2814
2815
- auto ty =
2816
- evaluateOrDefault(getASTContext().evaluator,
2817
- InterfaceTypeRequest{const_cast<ValueDecl *>(this)},
2818
- ErrorType::get(getASTContext()));
2819
- return ty ?: ErrorType::get(getASTContext());
+ if (auto Ty =
+ evaluateOrDefault(getASTContext().evaluator,
+ InterfaceTypeRequest{const_cast<ValueDecl *>(this)},
+ ErrorType::get(getASTContext())))
+ return Ty;
2820
+ return ErrorType::get(getASTContext());
2821
2822
2823
void ValueDecl::setInterfaceType(Type type) {
0 commit comments