aboutsummaryrefslogtreecommitdiffstats
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
commit04180e3b56e56ca1060ad74a9b242ff2322175cc (patch)
treedb7841819e44b19243076385bb40dfc90690757b
parentbbcb03b54884d73e5c2587ab12134a99ac7e9c1f (diff)
downloadexternal_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.tar.gz
external_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.tar.bz2
external_llvm-04180e3b56e56ca1060ad74a9b242ff2322175cc.zip
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
-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 68d2deff95..1d7a9b6d56 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.