diff options
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/XCOFFObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp index b1f44f1..8532012 100644 --- a/llvm/lib/Object/XCOFFObjectFile.cpp +++ b/llvm/lib/Object/XCOFFObjectFile.cpp @@ -798,7 +798,7 @@ Expected<DataRefImpl> XCOFFObjectFile::getSectionByNum(int16_t Num) const { DataRefImpl XCOFFObjectFile::getSectionByType(XCOFF::SectionTypeFlags SectType) const { DataRefImpl DRI; - auto GetSectionAddr = [&](const auto &Sections) { + auto GetSectionAddr = [&](const auto &Sections) -> uintptr_t { for (const auto &Sec : Sections) if (Sec.getSectionType() == SectType) return reinterpret_cast<uintptr_t>(&Sec); |