mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 05:18:46 +00:00
[lld] Fix a warning
This patch fixes: lld/MachO/SyntheticSections.cpp: In member function ‘virtual void lld::macho::ChainedFixupsSection::writeTo(uint8_t*) const’:
This commit is contained in:
parent
ad95c8d8d2
commit
3f82caf7b1
@ -2174,8 +2174,9 @@ void ChainedFixupsSection::writeTo(uint8_t *buf) const {
|
||||
uint64_t nameOffset = 0;
|
||||
for (auto [import, idx] : bindings) {
|
||||
const Symbol &sym = *import.first;
|
||||
int16_t libOrdinal = needsWeakBind(sym) ? BIND_SPECIAL_DYLIB_WEAK_LOOKUP
|
||||
: ordinalForSymbol(sym);
|
||||
int16_t libOrdinal = needsWeakBind(sym)
|
||||
? (int64_t)BIND_SPECIAL_DYLIB_WEAK_LOOKUP
|
||||
: ordinalForSymbol(sym);
|
||||
buf += writeImport(buf, importFormat, libOrdinal, sym.isWeakRef(),
|
||||
nameOffset, import.second);
|
||||
nameOffset += sym.getName().size() + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user