summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp4
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h2
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 1665448fc5b..9c10c06f193 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 60603103a9e..b539dab3c50 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<llvm::VersionTuple, llvm::StringRef>
ParseVersionBuildDir(llvm::StringRef str);
- enum class SDKType {
+ enum SDKType : unsigned {
MacOSX = 0,
iPhoneSimulator,
iPhoneOS,
OpenPOWER on IntegriCloud