diff --git a/llvm/utils/TableGen/PrinterCapstone.cpp b/llvm/utils/TableGen/PrinterCapstone.cpp index 94e616b6e4a8..4e07af20acc7 100644 --- a/llvm/utils/TableGen/PrinterCapstone.cpp +++ b/llvm/utils/TableGen/PrinterCapstone.cpp @@ -2601,6 +2601,7 @@ static inline std::string normalizedMnemonic(StringRef const &Mn, const bool Upper = true) { auto Mnemonic = Upper ? Mn.upper() : Mn.str(); std::replace(Mnemonic.begin(), Mnemonic.end(), '.', '_'); + std::replace(Mnemonic.begin(), Mnemonic.end(), '|', '_'); std::replace(Mnemonic.begin(), Mnemonic.end(), '+', 'p'); std::replace(Mnemonic.begin(), Mnemonic.end(), '-', 'm'); std::replace(Mnemonic.begin(), Mnemonic.end(), '/', 's');