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) {