From: Dan Gohman Date: Thu, 1 Oct 2009 17:39:52 +0000 (+0000) Subject: Don't use identifiers that start with an underscore followed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=835b142edd2a3da6d0b7a4e47d50408953a49db4;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index 30379a38f46..aa7d577da75 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -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)