[Lldb-commits] [lldb] [llvm] [llvm][lldb] Add check for incorrect target features (PR #180901)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 11 02:48:38 PST 2026


================
@@ -452,7 +477,9 @@ class Target {
                                          StringRef Features) const {
     if (!MCSubtargetInfoCtorFn)
       return nullptr;
-    return MCSubtargetInfoCtorFn(TheTriple, CPU, Features);
+    if (!isSignedFeatureList(Features))
+      return nullptr;
+    return MCSubtargetInfoCtorFn(Triple(TheTriple), CPU, Features);
----------------
DavidSpickett wrote:

Why the extra cast? TheTriple is already a Triple&.

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


More information about the lldb-commits mailing list