diff options
author | Kaelyn Uhrain <rikka@google.com> | 2013-08-29 18:49:35 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2013-08-29 18:49:35 +0000 |
commit | 9071f68fd2b18abaee614e07ae6da6d8bc34426e (patch) | |
tree | e823a3665cdffb31dc13f51c5b6493ef89a03345 | |
parent | 851bb2c9cbbd3b1847def5ca7ea8dadf457298b5 (diff) | |
download | llvm-9071f68fd2b18abaee614e07ae6da6d8bc34426e.tar.gz llvm-9071f68fd2b18abaee614e07ae6da6d8bc34426e.tar.bz2 llvm-9071f68fd2b18abaee614e07ae6da6d8bc34426e.tar.xz |
Fix the following error when NDEBUG is defined:
include/llvm/Support/UnicodeCharRanges.h:56:5: error:
use of this statement in a constexpr constructor is a C++1y extension
[-Werror,-Wc++1y-extensions]
assert(rangesAreValid());
^
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189599 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/UnicodeCharRanges.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/llvm/Support/UnicodeCharRanges.h b/include/llvm/Support/UnicodeCharRanges.h index c0075719a6..86faa38c0a 100644 --- a/include/llvm/Support/UnicodeCharRanges.h +++ b/include/llvm/Support/UnicodeCharRanges.h @@ -49,9 +49,6 @@ public: /// the UnicodeCharSet instance, and should not change. Array is validated by /// the constructor, so it makes sense to create as few UnicodeCharSet /// instances per each array of ranges, as possible. -#ifdef NDEBUG - LLVM_CONSTEXPR -#endif UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { assert(rangesAreValid()); } |