mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Name string length is end position marker - begin position marker.
llvm-svn: 53697
This commit is contained in:
parent
e1c10d31ec
commit
8927d00a25
@ -329,7 +329,7 @@ void LTOModule::lazyParseSymbols()
|
||||
if (pend == std::string::npos)
|
||||
break;
|
||||
|
||||
asmSymbolName.assign(inlineAsm, pbegin, pbegin-pend);
|
||||
asmSymbolName.assign(inlineAsm, pbegin, pend - pbegin);
|
||||
addAsmGlobalSymbol(asmSymbolName.c_str());
|
||||
|
||||
// search next .globl
|
||||
|
Loading…
Reference in New Issue
Block a user