[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings

llvm-svn: 217935
This commit is contained in:
Nick Kledzik 2014-09-17 01:51:43 +00:00
parent 1fbe1a8ba7
commit a637536ec1
1 changed files with 1 additions and 1 deletions

View File

@ -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: "