projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1419159
)
StringRef.h: __builtin_strlen seems to exist in VS 2017 MSVC 19.16 or later
author
Hans Wennborg
<hans@chromium.org>
Thu, 6 Feb 2020 11:27:02 +0000
(12:27 +0100)
committer
Hans Wennborg
<hans@chromium.org>
Thu, 6 Feb 2020 11:33:44 +0000
(12:33 +0100)
This is a follow-up to
ff837aa63cd
, as discussed on the llvm-commits
thread for that one.
llvm/include/llvm/ADT/StringRef.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/StringRef.h
b/llvm/include/llvm/ADT/StringRef.h
index
75a6e1a
..
0c36e33
100644
(file)
--- a/
llvm/include/llvm/ADT/StringRef.h
+++ b/
llvm/include/llvm/ADT/StringRef.h
@@
-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 >= 19
20
)
+ (defined(_MSC_VER) && _MSC_VER >= 19
16
)
return __builtin_strlen(Str);
#else
const char *Begin = Str;