From 835b142edd2a3da6d0b7a4e47d50408953a49db4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 1 Oct 2009 17:39:52 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/StringRef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.34.1