diff options
author | Devang Patel <dpatel@apple.com> | 2008-07-16 19:49:09 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-07-16 19:49:09 +0000 |
commit | 413907000e6949849e4b9c2fabda7105f8bedabd (patch) | |
tree | a0f184fb25c49f5dbcb615e3bf8a43653b2493be /tools | |
parent | c2aec57c63a8551cef27025dc7f0d2d9e56db013 (diff) | |
download | external_llvm-413907000e6949849e4b9c2fabda7105f8bedabd.zip external_llvm-413907000e6949849e4b9c2fabda7105f8bedabd.tar.gz external_llvm-413907000e6949849e4b9c2fabda7105f8bedabd.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lto/LTOModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index ac38d24..cef6922 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -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 |