[Lldb-commits] [PATCH] D79603: Add an API to construct an XcodeSDK from an SDK type.
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri May 8 09:05:26 PDT 2020
aprantl updated this revision to Diff 262883.
aprantl added a comment.
Remove redundant static_assert. It was only needed in the other function because that one used cascading ifs.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79603/new/
https://reviews.llvm.org/D79603
Files:
lldb/source/Utility/XcodeSDK.cpp
Index: lldb/source/Utility/XcodeSDK.cpp
===================================================================
--- lldb/source/Utility/XcodeSDK.cpp
+++ lldb/source/Utility/XcodeSDK.cpp
@@ -41,8 +41,6 @@
case XcodeSDK::unknown:
return {};
}
- static_assert(XcodeSDK::Linux == XcodeSDK::numSDKTypes - 1,
- "New SDK type was added, update this list!");
}
XcodeSDK::XcodeSDK(XcodeSDK::Info info) : m_name(GetName(info.type).str()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79603.262883.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200508/af6c0687/attachment-0001.bin>
More information about the lldb-commits
mailing list