[llvm] Make clang report garbage target versions. (PR #75373)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 13:09:39 PST 2023
================
@@ -1201,8 +1201,7 @@ StringRef Triple::getOSAndEnvironmentName() const {
static VersionTuple parseVersionFromName(StringRef Name) {
VersionTuple Version;
if (Version.tryParse(Name)) {
- errs() << "The input is "<< Name << " and it is invalid. Should pass an "<<
- "integer or integer combination! e.g. 2, 9.5 or 3.4.5\n";
+ errs() << "version "<< Name << " is invalid\n";
----------------
pirama-arumuga-nainar wrote:
Also include the triple in the error message: `version _ in triple _ is invalid".
https://github.com/llvm/llvm-project/pull/75373
More information about the llvm-commits
mailing list