[AArch64] Fix variable name ambiguity in r302078.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 3 May 2017 20:51:34 +0000 (20:51 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 3 May 2017 20:51:34 +0000 (20:51 +0000)
ArchKind is passed to the function, but it's also a type.

llvm-svn: 302081

llvm/lib/Support/TargetParser.cpp

index 4f6153d..b163519 100644 (file)
@@ -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);
 }