aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-13 07:50:21 +0000
committerChris Lattner <sabre@nondot.org>2010-01-13 07:50:21 +0000
commitb74978f8e536b254c00563d36ce9e4b4977c524a (patch)
tree5e4a5159fe61c8e14c9ea080ec18ad22c3d29005
parent2f8cc26be403262703ba00658d45e5adf7bdb514 (diff)
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
-rw-r--r--lib/VMCore/Mangler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 4d8a91cbf3..69a24a0bc2 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -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) {