[llvm] [llvm] Add format check for MCSubtargetFeatures (PR #180943)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 07:58:58 PDT 2026


================
@@ -452,6 +477,8 @@ class Target {
                                          StringRef Features) const {
     if (!MCSubtargetInfoCtorFn)
       return nullptr;
+    if (!isValidFeatureListFormat(Features))
----------------
topperc wrote:

The caller wouldn't have enough information to produce a helpful error message would it? Not sure how to fix that though.

https://github.com/llvm/llvm-project/pull/180943


More information about the llvm-commits mailing list