use new llvm::Optional APIs to fix deprecation warnings

This commit is contained in:
Erik Eckstein
2023-06-28 14:28:38 +02:00
parent 746dd9823a
commit 6b1697eb06
20 changed files with 28 additions and 28 deletions

View File

@@ -878,7 +878,7 @@ public:
os << " { } SWIFT_UNAVAILABLE_MSG(\"";
auto diag =
representation.isUnsupported() && representation.error.hasValue()
representation.isUnsupported() && representation.error.has_value()
? cxx_translation::diagnoseRepresenationError(
*representation.error, const_cast<ValueDecl *>(vd))
: Diagnostic(