[Support] Add comment to explain why we can't drop NDEBUG.
Discussed with: Benjamin Kramer. llvm-svn: 251210
This commit is contained in:
parent
df1ec5561a
commit
05d980e48d
|
|
@ -51,6 +51,11 @@ public:
|
|||
/// the constructor, so it makes sense to create as few UnicodeCharSet
|
||||
/// instances per each array of ranges, as possible.
|
||||
#ifdef NDEBUG
|
||||
|
||||
// FIXME: This could use constexpr + static_assert. This way we
|
||||
// may get rid of NDEBUG in this header. Unfortunately there are some
|
||||
// problems to get this working with MSVC 2013. Change this when
|
||||
// the support for MSVC 2013 is dropped.
|
||||
LLVM_CONSTEXPR UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {}
|
||||
#else
|
||||
UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue