From: Chris Lattner Date: Wed, 13 Jan 2010 07:50:21 +0000 (+0000) Subject: don't add the \1 to the name. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b74978f8e536b254c00563d36ce9e4b4977c524a;p=oota-llvm.git 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 --- 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) {