Index: COFF/Chunks.cpp =================================================================== --- COFF/Chunks.cpp +++ COFF/Chunks.cpp @@ -586,7 +586,7 @@ ArrayRef SectionChunk::getContents() const { ArrayRef A; - File->getCOFFObj()->getSectionContents(Header, A); + cantFail(File->getCOFFObj()->getSectionContents(Header, A)); return A; } Index: COFF/Driver.cpp =================================================================== --- COFF/Driver.cpp +++ COFF/Driver.cpp @@ -863,7 +863,8 @@ ArrayRef Syms = Obj->getSymbols(); if (Obj->AddrsigSec) { ArrayRef Contents; - Obj->getCOFFObj()->getSectionContents(Obj->AddrsigSec, Contents); + cantFail( + Obj->getCOFFObj()->getSectionContents(Obj->AddrsigSec, Contents)); const uint8_t *Cur = Contents.begin(); while (Cur != Contents.end()) { unsigned Size; Index: COFF/InputFiles.cpp =================================================================== --- COFF/InputFiles.cpp +++ COFF/InputFiles.cpp @@ -176,7 +176,7 @@ if (Name == ".drectve") { ArrayRef Data; - COFFObj->getSectionContents(Sec, Data); + cantFail(COFFObj->getSectionContents(Sec, Data)); Directives = StringRef((const char *)Data.data(), Data.size()); return nullptr; }