diff options
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/COFFObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index ff7129b..5fdf3ba 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/lib/Object/COFFObjectFile.cpp @@ -2369,7 +2369,7 @@ ResourceSectionRef::getContents(const coff_resource_data_entry &Entry) { Expected<StringRef> Contents = S.getContents(); if (!Contents) return Contents.takeError(); - return Contents->slice(Offset, Offset + Entry.DataSize); + return Contents->substr(Offset, Entry.DataSize); } } return createStringError(object_error::parse_failed, |