[llvm] 84428da - [MC] Fix compilation

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 04:23:54 PDT 2024


Author: Alexis Engelke
Date: 2024-06-20T11:23:19Z
New Revision: 84428dafc0941e3a31303fa1b286835ab2b8e234

URL: https://github.com/llvm/llvm-project/commit/84428dafc0941e3a31303fa1b286835ab2b8e234
DIFF: https://github.com/llvm/llvm-project/commit/84428dafc0941e3a31303fa1b286835ab2b8e234.diff

LOG: [MC] Fix compilation

Added: 
    

Modified: 
    llvm/lib/MC/MCContext.cpp

Removed: 
    


################################################################################
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);
 }
 


        


More information about the llvm-commits mailing list