From: Cyndy Ishida Date: Wed, 21 Aug 2019 23:57:57 +0000 (+0000) Subject: [Object] FIX: update PlatformKind name in TapiFile X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dec6da099ebb6df034f9ded2eb9c263c45b35f38;p=llvm [Object] FIX: update PlatformKind name in TapiFile 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 --- diff --git a/lib/Object/TapiFile.cpp b/lib/Object/TapiFile.cpp index be7d762ad1b..4d9fe7d9e8a 100644 --- a/lib/Object/TapiFile.cpp +++ b/lib/Object/TapiFile.cpp @@ -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 {