From 6d0b9047a7187ff742d180fa03cde6317687bb66 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 25 Oct 2018 16:15:17 +0000 Subject: [PATCH] Get rid of casts. (NFC) Differential Revision: https://reviews.llvm.org/D53709 llvm-svn: 345278 --- lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 4 ++-- lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index 1665448fc5bb..9c10c06f193a 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp @@ -1402,10 +1402,10 @@ bool PlatformDarwin::SDKSupportsModules(SDKType desired_type, if (last_path_component) { const llvm::StringRef sdk_name = last_path_component.GetStringRef(); - if (!sdk_name.startswith(sdk_strings[(int)desired_type])) + if (!sdk_name.startswith(sdk_strings[desired_type])) return false; auto version_part = - sdk_name.drop_front(strlen(sdk_strings[(int)desired_type])); + sdk_name.drop_front(strlen(sdk_strings[desired_type])); version_part.consume_back(".sdk"); llvm::VersionTuple version; diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h index 60603103a9e2..b539dab3c50d 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h @@ -85,7 +85,7 @@ public: static std::tuple ParseVersionBuildDir(llvm::StringRef str); - enum class SDKType { + enum SDKType : unsigned { MacOSX = 0, iPhoneSimulator, iPhoneOS,