diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-22 21:08:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-22 21:08:31 +0000 |
commit | 04180e3b56e56ca1060ad74a9b242ff2322175cc (patch) | |
tree | db7841819e44b19243076385bb40dfc90690757b /include/llvm/ADT | |
parent | bbcb03b54884d73e5c2587ab12134a99ac7e9c1f (diff) | |
download | external_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.zip external_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.tar.gz external_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.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')
-rw-r--r-- | include/llvm/ADT/StringRef.h | 2 |
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. |