================
@@ -15409,6 +15409,45 @@ ASTContext::filterFunctionTargetAttrs(const TargetAttr
*TD) const {
return ParsedAttr;
}
+const llvm::StringMap<bool> &
+ASTContext::getFunctionFeatureMap(const FunctionDecl *FD) const {
+ return getFunctionFeatureMap(GlobalDecl().getWithDecl(FD));
+}
+
+const llvm::StringMap<bool> &
+ASTContext::getFunctionFeatureMap(GlobalDecl GD) const {
+ const auto *FD = GD.getDecl() ? GD.getDecl()->getAsFunction() : nullptr;
+ if (FD && !FD->hasAttrs())
----------------
efriedma-quic wrote:
Can we return early if FD is null?
https://github.com/llvm/llvm-project/pull/241192
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits