================ @@ -3195,6 +3195,17 @@ bool Sema::checkTargetAttr(SourceLocation LiteralLoc, StringRef AttrStr) { } } + if (Context.getTargetInfo().getTriple().isLoongArch()) { + for (const auto &Feature : ParsedAttrs.Features) { + StringRef CurFeature = Feature; + if (CurFeature.starts_with("!arch=")) { ---------------- wangleiat wrote:
My mistake — I didn't notice the `!`. https://github.com/llvm/llvm-project/pull/140700 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits