mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
use new llvm::Optional API
`getValue` -> `value` `getValueOr` -> `value_or` `hasValue` -> `has_value` `map` -> `transform` The old API will be deprecated in the rebranch. To avoid merge conflicts, use the new API already in the main branch. rdar://102362022
This commit is contained in:
@@ -65,7 +65,7 @@ static std::string identifierForContext(const DeclContext *DC) {
|
||||
}
|
||||
|
||||
const auto *ext = cast<ExtensionDecl>(DC);
|
||||
auto fp = ext->getBodyFingerprint().getValueOr(Fingerprint::ZERO());
|
||||
auto fp = ext->getBodyFingerprint().value_or(Fingerprint::ZERO());
|
||||
auto typeStr = Mangler.mangleTypeAsContextUSR(ext->getExtendedNominal());
|
||||
return (typeStr + "@" + fp.getRawValue()).str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user