[llvm] r302081 - [AArch64] Fix variable name ambiguity in r302078.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 13:51:34 PDT 2017
Author: ab
Date: Wed May 3 15:51:34 2017
New Revision: 302081
URL: http://llvm.org/viewvc/llvm-project?rev=302081&view=rev
Log:
[AArch64] Fix variable name ambiguity in r302078.
ArchKind is passed to the function, but it's also a type.
Modified:
llvm/trunk/lib/Support/TargetParser.cpp
Modified: llvm/trunk/lib/Support/TargetParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/TargetParser.cpp?rev=302081&r1=302080&r2=302081&view=diff
==============================================================================
--- llvm/trunk/lib/Support/TargetParser.cpp (original)
+++ llvm/trunk/lib/Support/TargetParser.cpp Wed May 3 15:51:34 2017
@@ -422,8 +422,10 @@ unsigned llvm::AArch64::getDefaultExtens
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);
}
More information about the llvm-commits
mailing list