]> granicus.if.org Git - llvm/commitdiff
[Object] FIX: update PlatformKind name in TapiFile
authorCyndy Ishida <cyndy_ishida@apple.com>
Wed, 21 Aug 2019 23:57:57 +0000 (23:57 +0000)
committerCyndy Ishida <cyndy_ishida@apple.com>
Wed, 21 Aug 2019 23:57:57 +0000 (23:57 +0000)
Buildbots that use GCC failed to compile because overwritten
namespace with variable name

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369602 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/TapiFile.cpp

index be7d762ad1bc5c9e4b7f7a92ae62e38b97020c68..4d9fe7d9e8ac1b313c58f1d2d5f13b7fcbe9c548 100644 (file)
@@ -45,13 +45,13 @@ TapiFile::TapiFile(MemoryBufferRef Source, const InterfaceFile &interface,
     if (!Symbol->getArchitectures().has(Arch))
       continue;
 
-    auto PlatformKind = interface.getPlatform();
+    auto Platform = interface.getPlatform();
     switch (Symbol->getKind()) {
     case SymbolKind::GlobalSymbol:
       Symbols.emplace_back(StringRef(), Symbol->getName(), getFlags(Symbol));
       break;
     case SymbolKind::ObjectiveCClass:
-      if (PlatformKind == PlatformKind::macOS && Arch == AK_i386) {
+      if (Platform == PlatformKind::macOS && Arch == AK_i386) {
         Symbols.emplace_back(ObjC1ClassNamePrefix, Symbol->getName(),
                              getFlags(Symbol));
       } else {