From b74978f8e536b254c00563d36ce9e4b4977c524a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 13 Jan 2010 07:50:21 +0000 Subject: [PATCH] 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 --- lib/VMCore/Mangler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 4d8a91cbf33..69a24a0bc28 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -131,7 +131,7 @@ void Mangler::makeNameProper(SmallVectorImpl &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) {