mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Name string length is end position marker - begin position marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2aec57c63
commit
413907000e
@ -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…
x
Reference in New Issue
Block a user