Actually, don't try to use __builtin_strlen in StringRef.h before VS 2019
authorHans Wennborg <hans@chromium.org>
Mon, 3 Feb 2020 16:45:43 +0000 (17:45 +0100)
committerHans Wennborg <hans@chromium.org>
Mon, 3 Feb 2020 16:49:29 +0000 (17:49 +0100)
commitff837aa63cdfadb58f387ca77785ca3ca51c6976
tree1575bda672388c6c8ca8ce28ff1c8acfa0ebefb3
parentad7b908b4ef973a139fc8b78dd95990e66aabbe3
Actually, don't try to use __builtin_strlen in StringRef.h before VS 2019

The fix in b3d7d1061dc375bb5ea725e6597382fcd37f41d6 compiled nicely,
but didn't link because at least the VS 2017 version I use doesn't
have the builtin yet. Instead, make use of the builtin with MSVC
conditional on VS 2019 or later.
llvm/include/llvm/ADT/StringRef.h