diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2021-02-16 20:13:02 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2021-02-16 20:13:02 +0000 |
| commit | b60736ec1405bb0a8dd40989f67ef4c93da068ab (patch) | |
| tree | 5c43fbb7c9fc45f0f87e0e6795a86267dbd12f9d /llvm/lib/ObjectYAML/MachOYAML.cpp | |
| parent | cfca06d7963fa0909f90483b42a6d7d194d01e08 (diff) | |
Diffstat (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp')
| -rw-r--r-- | llvm/lib/ObjectYAML/MachOYAML.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp index 86aad0233767..5a27d37cb726 100644 --- a/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -305,12 +305,12 @@ void MappingTraits<MachOYAML::Section>::mapping(IO &IO, IO.mapOptional("relocations", Section.relocations); } -StringRef +std::string MappingTraits<MachOYAML::Section>::validate(IO &IO, MachOYAML::Section &Section) { if (Section.content && Section.size < Section.content->binary_size()) return "Section size must be greater than or equal to the content size"; - return {}; + return ""; } void MappingTraits<MachO::build_tool_version>::mapping( |
