Skip to content

Commit d8c3463

Browse files
committed
Update access note serialization for LLVM rebranch
1 parent 622d649 commit d8c3463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/AST/AccessNotes.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ LLVM_YAML_DECLARE_MAPPING_TRAITS(swift::AccessNotesFile)
177177
// Not using macro to avoid validation issues.
178178
template <> struct llvm::yaml::MappingTraits<swift::AccessNote> {
179179
static void mapping(IO &IO, swift::AccessNote &Obj);
180-
static StringRef validate(IO &IO, swift::AccessNote &Obj);
180+
static std::string validate(IO &IO, swift::AccessNote &Obj);
181181
};
182182

183183
namespace swift {
@@ -294,7 +294,7 @@ void MappingTraits<AccessNote>::mapping(IO &io, AccessNote &note) {
294294
io.mapOptional("ObjCName", note.ObjCName);
295295
}
296296

297-
StringRef MappingTraits<AccessNote>::validate(IO &io, AccessNote &note) {
297+
std::string MappingTraits<AccessNote>::validate(IO &io, AccessNote &note) {
298298
if (note.ObjCName.hasValue()) {
299299
if (!note.ObjC)
300300
note.ObjC = true;

0 commit comments

Comments
 (0)