Skip to content

Commit ed368ba

Browse files
committed
StringRef.h: __builtin_strlen seems to exist in VS 2017 MSVC 19.16 or later
This is a follow-up to ff837aa, as discussed on the llvm-commits thread for that one. (cherry picked from commit 1b3d166)
1 parent 96ed02d commit ed368ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ADT/StringRef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace llvm {
7878
#if __cplusplus > 201402L
7979
return std::char_traits<char>::length(Str);
8080
#elif __has_builtin(__builtin_strlen) || defined(__GNUC__) || \
81-
(defined(_MSC_VER) && _MSC_VER >= 1920)
81+
(defined(_MSC_VER) && _MSC_VER >= 1916)
8282
return __builtin_strlen(Str);
8383
#else
8484
const char *Begin = Str;

0 commit comments

Comments
 (0)