[llvm] r189599 - Fix the following error when NDEBUG is defined:
Kaelyn Uhrain
rikka at google.com
Thu Aug 29 11:49:35 PDT 2013
Author: rikka
Date: Thu Aug 29 13:49:35 2013
New Revision: 189599
URL: http://llvm.org/viewvc/llvm-project?rev=189599&view=rev
Log:
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());
^
Modified:
llvm/trunk/include/llvm/Support/UnicodeCharRanges.h
Modified: llvm/trunk/include/llvm/Support/UnicodeCharRanges.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/UnicodeCharRanges.h?rev=189599&r1=189598&r2=189599&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/UnicodeCharRanges.h (original)
+++ llvm/trunk/include/llvm/Support/UnicodeCharRanges.h Thu Aug 29 13:49:35 2013
@@ -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());
}
More information about the llvm-commits
mailing list