Revert "Re-add the assert to StringRef's const char *, length constructor."

This reverts commit r290188, which is causing internal compiler errors
on GCC 4.8

llvm-svn: 290189
This commit is contained in:
Zachary Turner 2016-12-20 18:05:47 +00:00
parent ada16b6e90
commit b861ce4531
1 changed files with 1 additions and 3 deletions

View File

@ -85,9 +85,7 @@ namespace llvm {
/// Construct a string ref from a pointer and length.
LLVM_ATTRIBUTE_ALWAYS_INLINE
/*implicit*/ constexpr StringRef(const char *data, size_t length)
: Data(data),
Length((data || length == 0) ? length : (assert(0 && "Bad StringRef"),
length)) {}
: Data(data), Length(length) {}
/// Construct a string ref from an std::string.
LLVM_ATTRIBUTE_ALWAYS_INLINE