don't add the \1 to the name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-13 07:50:21 +00:00
parent 2f8cc26be4
commit b74978f8e5

View File

@ -131,7 +131,7 @@ void Mangler::makeNameProper(SmallVectorImpl<char> &OutName,
}
// Add the piece that we already scanned through.
OutName.append(X.begin(), I);
OutName.append(X.begin()+!NeedPrefix, I);
// Otherwise, construct the string the expensive way.
for (StringRef::iterator E = X.end(); I != E; ++I) {