diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-19 15:38:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-19 15:38:38 +0000 |
commit | 26e7d81df8f9fa4cda697cdfa05fa99fe4ece48c (patch) | |
tree | dc0354e0084f99b4b91083c14cc9e61a27b7de52 | |
parent | 6a479bf281455a3eb0da3e9193110ab97ceef3c5 (diff) | |
download | bcm5719-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.h | 4 |
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 |