forked from OSchip/llvm-project
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:
parent
ada16b6e90
commit
b861ce4531
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue