mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings
llvm-svn: 217935
This commit is contained in:
parent
c7d20aed03
commit
1cd062c7e5
@ -1957,9 +1957,9 @@ void MachOBindEntry::moveNext() {
|
||||
while (*Ptr) {
|
||||
++Ptr;
|
||||
}
|
||||
++Ptr;
|
||||
SymbolName = StringRef(reinterpret_cast<const char*>(SymStart),
|
||||
Ptr-SymStart);
|
||||
++Ptr;
|
||||
DEBUG_WITH_TYPE(
|
||||
"mach-o-bind",
|
||||
llvm::dbgs() << "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user