================
@@ -15355,8 +15355,11 @@ void
ASTContext::getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap,
StringRef VersionStr = TC->getFeatureStr(GD.getMultiVersionIndex());
if (VersionStr.starts_with("cpu="))
TargetCPU = VersionStr.drop_front(sizeof("cpu=") - 1);
- else
- assert(VersionStr == "default");
+ else if (VersionStr != "default") {
+ // Handle feature strings
+ ParsedTargetAttr ParsedAttr = Target->parseTargetAttr(VersionStr);
+ Features = ParsedAttr.Features;
----------------
w2yehia wrote:
done
https://github.com/llvm/llvm-project/pull/206786
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits