From 9443d0e2c09b5d6914b5aa843b1ba8a9df594215 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Wed, 21 Aug 2019 23:57:57 +0000 Subject: [Object] FIX: update PlatformKind name in TapiFile Buildbots that use GCC failed to compile because overwritten namespace with variable name llvm-svn: 369602 --- llvm/lib/Object/TapiFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/TapiFile.cpp') diff --git a/llvm/lib/Object/TapiFile.cpp b/llvm/lib/Object/TapiFile.cpp index be7d762ad1b..4d9fe7d9e8a 100644 --- a/llvm/lib/Object/TapiFile.cpp +++ b/llvm/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 { -- cgit v1.2.3