summaryrefslogtreecommitdiffstats
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
commit26e7d81df8f9fa4cda697cdfa05fa99fe4ece48c (patch)
treedc0354e0084f99b4b91083c14cc9e61a27b7de52
parent6a479bf281455a3eb0da3e9193110ab97ceef3c5 (diff)
downloadbcm5719-llvm-26e7d81df8f9fa4cda697cdfa05fa99fe4ece48c.tar.gz
bcm5719-llvm-26e7d81df8f9fa4cda697cdfa05fa99fe4ece48c.zip
These functions don't need to access this.
llvm-svn: 101776
-rw-r--r--llvm/include/llvm/ADT/StringRef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h
index 925777000f5..ab6358bdfa6 100644
--- a/llvm/include/llvm/ADT/StringRef.h
+++ b/llvm/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
OpenPOWER on IntegriCloud