more user-friendly error message for some clang diagnostics

See #4455
This commit is contained in:
Andrew Kelley 2020-02-16 01:45:48 -05:00
parent 7f7d1fbe5a
commit 5e37fc0746
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -64,7 +64,7 @@ const char *err_str(Error err) {
case ErrorInvalidCpuFeatures: return "invalid CPU features";
case ErrorInvalidLlvmCpuFeaturesFormat: return "invalid LLVM CPU features format";
case ErrorUnknownApplicationBinaryInterface: return "unknown application binary interface";
case ErrorASTUnitFailure: return "ASTUnit failure";
case ErrorASTUnitFailure: return "compiler bug: clang encountered a compile error, but the libclang API does not expose the error. See https://github.com/ziglang/zig/issues/4455 for more details";
}
return "(invalid error)";
}