diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-09-12 23:38:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 23:38:31 -0700 |
commit | 520ddf22b2270dc092dbdbd391b1c02c403b475a (patch) | |
tree | 1fa2e16f896de31886d4928c8fc835244fd18820 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 57aaf5ec9fbcf736daf742d2cbcf103b6df65881 (diff) | |
download | llvm-520ddf22b2270dc092dbdbd391b1c02c403b475a.zip llvm-520ddf22b2270dc092dbdbd391b1c02c403b475a.tar.gz llvm-520ddf22b2270dc092dbdbd391b1c02c403b475a.tar.bz2 |
[TableGen] Remove duplicate code in applyMnemonicAliases when target uses DefaultAsmParserVariant. (#108494)
The DefaultAsmParserVariant has an empty name. MnemonicAlias uses an
empty string to mean the alias applies to all variants.
Targets that uses DefaultAsmParserVariant were emitting the same code
inside the variant loop and after the variant loop because an empty
string got passed to emitMnemonicAliasVariant in both places.
This patch detects the empty variant name in the loop and skips the
emission.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions