mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
use new llvm::Optional APIs to fix deprecation warnings
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user