mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 01:04:49 +08:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user