aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-09-12 23:38:31 -0700
committerGitHub <noreply@github.com>2024-09-12 23:38:31 -0700
commit520ddf22b2270dc092dbdbd391b1c02c403b475a (patch)
tree1fa2e16f896de31886d4928c8fc835244fd18820 /clang/lib/CodeGen/CodeGenModule.cpp
parent57aaf5ec9fbcf736daf742d2cbcf103b6df65881 (diff)
downloadllvm-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