mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
[AArch64] Fix variable name ambiguity in r302078.
ArchKind is passed to the function, but it's also a type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -422,8 +422,10 @@ unsigned llvm::AArch64::getDefaultExtensions(StringRef CPU, unsigned ArchKind) {
|
||||
return AArch64ARCHNames[ArchKind].ArchBaseExtensions;
|
||||
|
||||
return StringSwitch<unsigned>(CPU)
|
||||
#define AARCH64_CPU_NAME(NAME, ID, DEFAULT_FPU, IS_DEFAULT, DEFAULT_EXT) \
|
||||
.Case(NAME, AArch64ARCHNames[(unsigned)ArchKind::ID].ArchBaseExtensions | DEFAULT_EXT)
|
||||
#define AARCH64_CPU_NAME(NAME, ID, DEFAULT_FPU, IS_DEFAULT, DEFAULT_EXT) \
|
||||
.Case(NAME, \
|
||||
AArch64ARCHNames[(unsigned)AArch64::ArchKind::ID].ArchBaseExtensions | \
|
||||
DEFAULT_EXT)
|
||||
#include "llvm/Support/AArch64TargetParser.def"
|
||||
.Default(AArch64::AEK_INVALID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user