forked from OSchip/llvm-project
[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings
llvm-svn: 217935
This commit is contained in:
parent
1fbe1a8ba7
commit
a637536ec1
|
@ -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…
Reference in New Issue