forked from OSchip/llvm-project
COFF: Add back an assertion that is superseded by r222124
llvm-svn: 222735
This commit is contained in:
parent
0349a019ca
commit
c7353b5890
|
@ -1060,7 +1060,7 @@ symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
|
||||||
else if (SymbolTable32)
|
else if (SymbolTable32)
|
||||||
Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex);
|
Ref.p = reinterpret_cast<uintptr_t>(SymbolTable32 + R->SymbolTableIndex);
|
||||||
else
|
else
|
||||||
return symbol_end();
|
llvm_unreachable("no symbol table pointer!");
|
||||||
return symbol_iterator(SymbolRef(Ref, this));
|
return symbol_iterator(SymbolRef(Ref, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue