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 | 13cf3beeb3c42d1ca4df3d8578a3f29e1e2f9d6c (patch) | |
tree | 5cee958d75a2d1853cb18a60987e9ea7dc0ccb74 | |
parent | 47e575e267c907d93442ffce367416dd6ba7ea41 (diff) | |
download | bcm5719-llvm-13cf3beeb3c42d1ca4df3d8578a3f29e1e2f9d6c.tar.gz bcm5719-llvm-13cf3beeb3c42d1ca4df3d8578a3f29e1e2f9d6c.zip |
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());
^
llvm-svn: 189599
-rw-r--r-- | llvm/include/llvm/Support/UnicodeCharRanges.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/UnicodeCharRanges.h b/llvm/include/llvm/Support/UnicodeCharRanges.h index c0075719a6d..86faa38c0af 100644 --- a/llvm/include/llvm/Support/UnicodeCharRanges.h +++ b/llvm/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()); } |