diff options
Diffstat (limited to 'lld/COFF/Driver.cpp')
-rw-r--r-- | lld/COFF/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 807bd6f71c9..04db2339c8a 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -863,7 +863,8 @@ static void findKeepUniqueSections() { ArrayRef<Symbol *> Syms = Obj->getSymbols(); if (Obj->AddrsigSec) { ArrayRef<uint8_t> 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; |