Skip to content

Commit

Permalink
Remove accidentially introduced regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jul 7, 2023
1 parent 19bf8f1 commit 683a595
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/ARM/ARMGenAsmWriter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13228,6 +13228,7 @@ static bool printAliasInstr(MCInst *MI, uint64_t Address, SStream *OS) {
Patterns,
Conds,
AsmStrings,
NULL,
};
const char *AsmString = matchAliasPatterns(MI, &M);
if (!AsmString) return false;
Expand All @@ -13236,15 +13237,13 @@ static bool printAliasInstr(MCInst *MI, uint64_t Address, SStream *OS) {
while (AsmString[I] != ' ' && AsmString[I] != '\t' &&
AsmString[I] != '$' && AsmString[I] != '\0')
++I;
SStream_concat1(OS, '\t');
char *substr = malloc(I+1);
memcpy(substr, AsmString, I);
substr[I] = '\0';
SStream_concat0(OS, substr);
free(substr);
if (AsmString[I] != '\0') {
if (AsmString[I] == ' ' || AsmString[I] == '\t') {
SStream_concat1(OS, '\t');
++I;
}
do {
Expand Down

0 comments on commit 683a595

Please sign in to comment.