aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/StringRef.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-01 17:39:52 +0000
committerDan Gohman <gohman@apple.com>2009-10-01 17:39:52 +0000
commit835b142edd2a3da6d0b7a4e47d50408953a49db4 (patch)
treec549f0b8aeb39189652f25f2e18cdea871cd6e32 /include/llvm/ADT/StringRef.h
parent9c091a4846044f18cfdd8bca55957c2aa6c9a8a5 (diff)
downloadexternal_llvm-835b142edd2a3da6d0b7a4e47d50408953a49db4.zip
external_llvm-835b142edd2a3da6d0b7a4e47d50408953a49db4.tar.gz
external_llvm-835b142edd2a3da6d0b7a4e47d50408953a49db4.tar.bz2
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 30379a3..aa7d577 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)