diff --git a/llvm/utils/TableGen/PrinterCapstone.cpp b/llvm/utils/TableGen/PrinterCapstone.cpp index bf75d85bf076..775e79037bab 100644 --- a/llvm/utils/TableGen/PrinterCapstone.cpp +++ b/llvm/utils/TableGen/PrinterCapstone.cpp @@ -2619,7 +2619,7 @@ std::string getArchSupplInfoAArch64(CodeGenInstruction const *CGI) { // Compute memory access type std::string MemoryAccess; if (CGI->mayLoad && CGI->mayStore) { - MemoryAccess = "CS_AC_READ_WRTE"; + MemoryAccess = "CS_AC_READ_WRITE"; } else if (CGI->mayLoad && !CGI->mayStore) { MemoryAccess = "CS_AC_READ"; } else if (!CGI->mayLoad && CGI->mayStore) { @@ -2675,7 +2675,7 @@ std::string getArchSupplInfoLoongArch(StringRef const &TargetName, // Compute memory access type std::string MemoryAccess; if (CGI->mayLoad && CGI->mayStore) { - MemoryAccess = "CS_AC_READ_WRTE"; + MemoryAccess = "CS_AC_READ_WRITE"; } else if (CGI->mayLoad && !CGI->mayStore) { MemoryAccess = "CS_AC_READ"; } else if (!CGI->mayLoad && CGI->mayStore) {