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()) {
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()) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits