don't add the \1 to the name.
authorChris Lattner <sabre@nondot.org>
Wed, 13 Jan 2010 07:50:21 +0000 (07:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Jan 2010 07:50:21 +0000 (07:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93304 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Mangler.cpp

index 4d8a91cbf3396cdf9ac707cf6ffd7f8da8fdb8bb..69a24a0bc2847bccb22ac1c80191b40bf56a273a 100644 (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) {