[lld] Don't use Optional::hasValue (NFC)

This patch replaces x.hasValue() with x where x is contextually
convertible to bool.
This commit is contained in:
Kazu Hirata
2022-06-26 19:37:14 -07:00
parent 96d1b4ddb2
commit 586fb81eee
3 changed files with 7 additions and 7 deletions

View File

@@ -744,7 +744,7 @@ static void updateARMVFPArgs(const ARMAttributeParser &attributes,
static void updateSupportedARMFeatures(const ARMAttributeParser &attributes) {
Optional<unsigned> attr =
attributes.getAttributeValue(ARMBuildAttrs::CPU_arch);
if (!attr.hasValue())
if (!attr)
return;
auto arch = attr.getValue();
switch (arch) {