size_t, not unsigned here to silence a warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2009-10-22 22:06:50 +00:00
parent a0b0562a35
commit abc5ac7289

View File

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