diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-01 17:39:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-01 17:39:52 +0000 |
commit | 835b142edd2a3da6d0b7a4e47d50408953a49db4 (patch) | |
tree | c549f0b8aeb39189652f25f2e18cdea871cd6e32 /include/llvm/ADT/StringRef.h | |
parent | 9c091a4846044f18cfdd8bca55957c2aa6c9a8a5 (diff) |
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
Diffstat (limited to 'include/llvm/ADT/StringRef.h')
-rw-r--r-- | include/llvm/ADT/StringRef.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index 30379a38f4..aa7d577da7 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) |