StringRef.h: __builtin_strlen seems to exist in VS 2017 MSVC 19.16 or later

This is a follow-up to ff837aa63c, as discussed on the llvm-commits
thread for that one.
This commit is contained in:
Hans Wennborg 2020-02-06 12:27:02 +01:00
parent 141915963b
commit 1b3d1661bb
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,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;