Don't use identifiers that start with an underscore followed

by a capital letter, which invokes undefined behavior.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-10-01 17:39:52 +00:00
parent 9c091a4846
commit 835b142edd

View File

@ -49,8 +49,8 @@ namespace llvm {
: Data(Str) { if (Str) Length = ::strlen(Str); else Length = 0; }
/// Construct a string ref from a pointer and length.
/*implicit*/ StringRef(const char *_Data, unsigned _Length)
: Data(_Data), Length(_Length) {}
/*implicit*/ StringRef(const char *data, unsigned length)
: Data(data), Length(length) {}
/// Construct a string ref from an std::string.
/*implicit*/ StringRef(const std::string &Str)