aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/StringRef.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-22 21:08:31 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-22 21:08:31 +0000
commitb834a7b73ce0dcf8fbf8d8b0d62f69e4b78059ad (patch)
treedb7841819e44b19243076385bb40dfc90690757b /include/llvm/ADT/StringRef.h
parentdfd3b647839d3f944b5d8bffd6e9a2ec022d3507 (diff)
downloadexternal_llvm-b834a7b73ce0dcf8fbf8d8b0d62f69e4b78059ad.zip
external_llvm-b834a7b73ce0dcf8fbf8d8b0d62f69e4b78059ad.tar.gz
external_llvm-b834a7b73ce0dcf8fbf8d8b0d62f69e4b78059ad.tar.bz2
Define npos in a way that should make MSVC happier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/StringRef.h')
-rw-r--r--include/llvm/ADT/StringRef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 68d2def..1d7a9b6 100644
--- a/include/llvm/ADT/StringRef.h
+++ b/include/llvm/ADT/StringRef.h
@@ -26,7 +26,7 @@ namespace llvm {
class StringRef {
public:
typedef const char *iterator;
- static const size_t npos = std::string::npos;
+ static const size_t npos = ~size_t(0);
private:
/// The start of the string, in an external buffer.