Skip to content

Commit 8bdb496

Browse files
b1llowRot127
authored andcommitted
fix printInsnAliasEnum
1 parent 48774db commit 8bdb496

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/TableGen/PrinterCapstone.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,6 +3438,10 @@ void printInsnAliasEnum(CodeGenTarget const &Target,
34383438
SmallVector<StringRef, 1> Matches;
34393439
// Some Alias only differ by operands. Get only the mnemonic part.
34403440
Regex("^[a-zA-Z0-9+-.]+").match(AliasAsm, &Matches);
3441+
if (Matches.empty()) {
3442+
continue;
3443+
}
3444+
34413445
StringRef &AliasMnemonic = Matches[0];
34423446
std::string NormAliasMnem = Target.getName().upper() + "_INS_ALIAS_" +
34433447
normalizedMnemonic(AliasMnemonic);

0 commit comments

Comments
 (0)