[llvm-branch-commits] [flang] [flang][OpenMP] Track reachable metadirective replacements (PR #219014)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 18 23:19:11 PDT 2026


================
@@ -344,7 +375,9 @@ static APInt getVariantMatchScore(const VariantMatchInfo &VMI,
       // TODO: Handling separately.
       break;
     case TraitSet::invalid:
-      llvm_unreachable("Unknown trait set is not to be used!");
+      // Unknown properties can be applicable under match_any or match_none.
+      // They contribute no score unless an explicit score was handled above.
----------------
MattPD wrote:

Fixed by https://github.com/llvm/llvm-project/pull/224431: The unknown `arch` candidate keeps its weight, and all three COLLAPSE diagnostics are reported at 9dd52517.

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


More information about the llvm-branch-commits mailing list