================
@@ -147,8 +149,11 @@ static bool DecodeAArch64Features(const Driver &D,
StringRef text,
D.Diag(clang::diag::err_drv_no_neon_modifier);
continue;
}
- if (!Extensions.parseModifier(Feature))
+ if (!Extensions.parseModifier(Feature)) {
+ if (InvalidArg)
+ InvalidArg->emplace(("+" + Feature).str());
----------------
DavidSpickett wrote:
Do we know that this will always be a plus?
Actually I think I just remembered why we can assume this. For `-march` we
don't have `-feature` we have `+nofeature`.
Therefore, it's always `+<feature>` or `+no<feature>`, correct?
https://github.com/llvm/llvm-project/pull/197441
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits