1
0
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:
Devang Patel 2008-07-16 19:49:09 +00:00
parent e1c10d31ec
commit 8927d00a25

View File

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