aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/StringRef.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 15:38:38 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 15:38:38 +0000
commitfd813bc85027b8e4f8dc42b485b254cff210012d (patch)
tree3a22464032923449d7cdf98f11689c1c35767906 /include/llvm/ADT/StringRef.h
parentd456a47dd3524024601da5070ab512373b785736 (diff)
downloadexternal_llvm-fd813bc85027b8e4f8dc42b485b254cff210012d.tar.gz
external_llvm-fd813bc85027b8e4f8dc42b485b254cff210012d.tar.bz2
external_llvm-fd813bc85027b8e4f8dc42b485b254cff210012d.zip
These functions don't need to access this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/StringRef.h')
-rw-r--r--include/llvm/ADT/StringRef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 925777000f..ab6358bdfa 100644
--- a/include/llvm/ADT/StringRef.h
+++ b/include/llvm/ADT/StringRef.h
@@ -44,8 +44,8 @@ namespace llvm {
// Workaround PR5482: nearly all gcc 4.x miscompile StringRef and std::min()
// Changing the arg of min to be an integer, instead of a reference to an
// integer works around this bug.
- size_t min(size_t a, size_t b) const { return a < b ? a : b; }
- size_t max(size_t a, size_t b) const { return a > b ? a : b; }
+ static size_t min(size_t a, size_t b) { return a < b ? a : b; }
+ static size_t max(size_t a, size_t b) { return a > b ? a : b; }
public:
/// @name Constructors