diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 729e8daea6408..bb87682dd2163 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -325,7 +325,7 @@ MCSymbol *MCContext::createBlockSymbol(const Twine &Name, bool AlwaysEmit) { bool IsTemporary = !SaveTempLabels; if (IsTemporary && !UseNamesOnTempLabels) return createSymbolImpl(nullptr, IsTemporary); - return createRenamableSymbol(MAI->getPrivateLabelPrefix() << Name, + return createRenamableSymbol(MAI->getPrivateLabelPrefix() + Name, /*AlwaysAddSuffix=*/false, IsTemporary); }