diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index d5ff7d6439c7..04cd61698c60 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/lib/Object/COFFObjectFile.cpp @@ -1060,7 +1060,7 @@ symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { else if (SymbolTable32) Ref.p = reinterpret_cast(SymbolTable32 + R->SymbolTableIndex); else - return symbol_end(); + llvm_unreachable("no symbol table pointer!"); return symbol_iterator(SymbolRef(Ref, this)); }