[llvm-commits] [llvm] r53697 - /llvm/trunk/tools/lto/LTOModule.cpp
Devang Patel
dpatel at apple.com
Wed Jul 16 12:49:09 PDT 2008
Author: dpatel
Date: Wed Jul 16 14:49:09 2008
New Revision: 53697
URL: http://llvm.org/viewvc/llvm-project?rev=53697&view=rev
Log:
Name string length is end position marker - begin position marker.
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=53697&r1=53696&r2=53697&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Wed Jul 16 14:49:09 2008
@@ -329,7 +329,7 @@
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
More information about the llvm-commits
mailing list