[llvm] [llvm] Add format check for MCSubtargetFeatures (PR #180943)
Georgiy Samoylov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 02:15:54 PST 2026
================
@@ -452,6 +477,8 @@ class Target {
StringRef Features) const {
if (!MCSubtargetInfoCtorFn)
return nullptr;
+ if (!isValidFeatureListFormat(Features))
----------------
sga-sc wrote:
IMO the caller of this function should check that the return value is not nullptr. This is the caller's responsibility for creating an error
https://github.com/llvm/llvm-project/pull/180943
More information about the llvm-commits
mailing list