aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {