Merge pull request #25 from Rot127/fix-alias-asm-str

Emit a space if the alias has one at the same position as well.
This commit is contained in:
Rot127 2023-07-29 11:16:47 +00:00 committed by GitHub
commit f878c108c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1734,6 +1734,7 @@ void PrinterCapstone::asmWriterEmitPrintAliasInstrBody(
OS << " if (AsmString[I] != '\\0') {\n";
OS << " if (AsmString[I] == ' ' || AsmString[I] == '\\t') {\n";
OS << " SStream_concat1(OS, ' ');\n";
OS << " ++I;\n";
OS << " }\n";
OS << " do {\n";