Skip to content

Commit 013acca

Browse files
committed
[APINotes] Fix failing linux build
rdar://143701027
1 parent e5e04cd commit 013acca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/APINotes/APINotesYAMLCompiler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ enum class APIAvailability {
152152

153153
/* TO_UPSTREAM(BoundsSafety) ON */
154154
namespace {
155-
struct BoundsSafety {
155+
struct BoundsSafetyNotes {
156156
BoundsSafetyInfo::BoundsSafetyKind Kind;
157157
unsigned Level = 0;
158158
StringRef BoundsExpr = "";
@@ -215,7 +215,7 @@ struct Param {
215215
std::optional<NullabilityKind> Nullability;
216216
std::optional<RetainCountConventionKind> RetainCountConvention;
217217
/* TO_UPSTREAM(BoundsSafety) ON */
218-
std::optional<BoundsSafety> BoundsSafety;
218+
std::optional<BoundsSafetyNotes> BoundsSafety;
219219
/* TO_UPSTREAM(BoundsSafety) OFF */
220220
StringRef Type;
221221
};
@@ -275,8 +275,8 @@ template <> struct MappingTraits<Param> {
275275
};
276276

277277
/* TO_UPSTREAM(BoundsSafety) ON */
278-
template <> struct MappingTraits<BoundsSafety> {
279-
static void mapping(IO &IO, BoundsSafety &BS) {
278+
template <> struct MappingTraits<BoundsSafetyNotes> {
279+
static void mapping(IO &IO, BoundsSafetyNotes &BS) {
280280
IO.mapRequired("Kind", BS.Kind);
281281
IO.mapRequired("BoundedBy", BS.BoundsExpr);
282282
IO.mapOptional("Level", BS.Level, 0);

0 commit comments

Comments
 (0)