@@ -1173,19 +1173,19 @@ ParsedTargetAttr AArch64TargetInfo::parseTargetAttr(StringRef Features) const {
11731173bool AArch64TargetInfo::initFeatureMap (
11741174 llvm::StringMap<bool > &Features, DiagnosticsEngine &Diags, StringRef CPU,
11751175 const std::vector<std::string> &FeaturesVec) const {
1176- std::vector<std::string> UpdatedFeaturesVec;
1177- // Parse the CPU and add any implied features.
1178- std::optional<llvm::AArch64::CpuInfo> CpuInfo = llvm::AArch64::parseCpu (CPU);
1179- if (CpuInfo) {
1180- auto Exts = CpuInfo->getImpliedExtensions ();
1181- std::vector<StringRef> CPUFeats;
1182- llvm::AArch64::getExtensionFeatures (Exts, CPUFeats);
1183- for (auto F : CPUFeats) {
1184- assert ((F[0 ] == ' +' || F[0 ] == ' -' ) && " Expected +/- in target feature!" );
1185- UpdatedFeaturesVec.push_back (F.str ());
1186- }
1187- }
1188- return TargetInfo::initFeatureMap (Features, Diags, CPU, UpdatedFeaturesVec);
1176+ std::vector<std::string> UpdatedFeaturesVec;
1177+ // Parse the CPU and add any implied features.
1178+ std::optional<llvm::AArch64::CpuInfo> CpuInfo = llvm::AArch64::parseCpu (CPU);
1179+ if (CpuInfo) {
1180+ auto Exts = CpuInfo->getImpliedExtensions ();
1181+ std::vector<StringRef> CPUFeats;
1182+ llvm::AArch64::getExtensionFeatures (Exts, CPUFeats);
1183+ for (auto F : CPUFeats) {
1184+ assert ((F[0 ] == ' +' || F[0 ] == ' -' ) && " Expected +/- in target feature!" );
1185+ UpdatedFeaturesVec.push_back (F.str ());
1186+ }
1187+ }
1188+ return TargetInfo::initFeatureMap (Features, Diags, CPU, UpdatedFeaturesVec);
11891189}
11901190
11911191bool AArch64TargetInfo::hasBFloat16Type () const {
0 commit comments