[clang] Multilib error fixes (PR #110804)
Simon Tatham via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 3 08:47:41 PDT 2024
================
@@ -217,15 +215,15 @@ struct MultilibSetSerialization {
template <> struct llvm::yaml::MappingTraits<MultilibSerialization> {
static void mapping(llvm::yaml::IO &io, MultilibSerialization &V) {
io.mapOptional("Dir", V.Dir);
- io.mapOptional("FatalError", V.FatalError);
+ io.mapOptional("Error", V.Error);
io.mapRequired("Flags", V.Flags);
io.mapOptional("Group", V.Group);
}
static std::string validate(IO &io, MultilibSerialization &V) {
- if (V.Dir.empty() && V.FatalError.empty())
- return "one of the 'Dir' and 'FatalError' keys must be specified";
- if (!V.Dir.empty() && !V.FatalError.empty())
- return "the 'Dir' and 'FatalError' keys may not both be specified";
+ if (V.Dir.empty() && V.Error.empty())
+ return "one of the 'Dir' and 'atalError' keys must be specified";
----------------
statham-arm wrote:
Ha – that's what I get for checking I'd caught them all by grepping for `Fatal`. The grep missed this one! (And also the lower-case one you pointed out before.)
https://github.com/llvm/llvm-project/pull/110804
More information about the cfe-commits
mailing list