diff options
| author | Hans Wennborg <hans@chromium.org> | 2020-02-06 12:27:02 +0100 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-02-07 13:03:47 +0100 |
| commit | ed368ba5a963cb988c7466cb634ec1b56807138f (patch) | |
| tree | 444f76ff25a7452bb7390c80aad6166cb528ec8d /llvm/include | |
| parent | 96ed02ddeebfd18265ef687fce80e7e148ec261c (diff) | |
| download | bcm5719-llvm-ed368ba5a963cb988c7466cb634ec1b56807138f.tar.gz bcm5719-llvm-ed368ba5a963cb988c7466cb634ec1b56807138f.zip | |
StringRef.h: __builtin_strlen seems to exist in VS 2017 MSVC 19.16 or later
This is a follow-up to ff837aa63cd, as discussed on the llvm-commits
thread for that one.
(cherry picked from commit 1b3d1661bbeb2c90f8f3ef6e2b77a70bc148731e)
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/ADT/StringRef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/StringRef.h b/llvm/include/llvm/ADT/StringRef.h index 7c13b5d17ec..f06d18720c3 100644 --- a/llvm/include/llvm/ADT/StringRef.h +++ b/llvm/include/llvm/ADT/StringRef.h @@ -78,7 +78,7 @@ namespace llvm { #if __cplusplus > 201402L return std::char_traits<char>::length(Str); #elif __has_builtin(__builtin_strlen) || defined(__GNUC__) || \ - (defined(_MSC_VER) && _MSC_VER >= 1920) + (defined(_MSC_VER) && _MSC_VER >= 1916) return __builtin_strlen(Str); #else const char *Begin = Str; |

