Skip to content

Commit

Permalink
[APINotes] Fix failing linux build
Browse files Browse the repository at this point in the history
rdar://143701027
  • Loading branch information
hnrklssn committed Feb 6, 2025
1 parent e5e04cd commit 013acca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/APINotes/APINotesYAMLCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ enum class APIAvailability {

/* TO_UPSTREAM(BoundsSafety) ON */
namespace {
struct BoundsSafety {
struct BoundsSafetyNotes {
BoundsSafetyInfo::BoundsSafetyKind Kind;
unsigned Level = 0;
StringRef BoundsExpr = "";
Expand Down Expand Up @@ -215,7 +215,7 @@ struct Param {
std::optional<NullabilityKind> Nullability;
std::optional<RetainCountConventionKind> RetainCountConvention;
/* TO_UPSTREAM(BoundsSafety) ON */
std::optional<BoundsSafety> BoundsSafety;
std::optional<BoundsSafetyNotes> BoundsSafety;
/* TO_UPSTREAM(BoundsSafety) OFF */
StringRef Type;
};
Expand Down Expand Up @@ -275,8 +275,8 @@ template <> struct MappingTraits<Param> {
};

/* TO_UPSTREAM(BoundsSafety) ON */
template <> struct MappingTraits<BoundsSafety> {
static void mapping(IO &IO, BoundsSafety &BS) {
template <> struct MappingTraits<BoundsSafetyNotes> {
static void mapping(IO &IO, BoundsSafetyNotes &BS) {
IO.mapRequired("Kind", BS.Kind);
IO.mapRequired("BoundedBy", BS.BoundsExpr);
IO.mapOptional("Level", BS.Level, 0);
Expand Down

0 comments on commit 013acca

Please sign in to comment.