summaryrefslogtreecommitdiffstats
path: root/src/Detect.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-13 19:02:34 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-13 19:02:34 (GMT)
commit4db44f1e26222ae9ad2aa0d41ee5ccd5a46c1d91 (patch)
tree4086c01ffd7c1e54f79d9550ebe8eb18bf9194be /src/Detect.cxx
parent626588b829e79f1eca72f9898c735b6bdc6cbd29 (diff)
downloadCastXML-4db44f1e26222ae9ad2aa0d41ee5ccd5a46c1d91.zip
CastXML-4db44f1e26222ae9ad2aa0d41ee5ccd5a46c1d91.tar.gz
CastXML-4db44f1e26222ae9ad2aa0d41ee5ccd5a46c1d91.tar.bz2
Port to LLVM/Clang Git master as of 2020-02-13 (6c73246179)
The `llvm::StringRef` type now requires explicit conversion to `std::string`. Such explicit conversions still work with older versions of LLVM/Clang too.
Diffstat (limited to 'src/Detect.cxx')
-rw-r--r--src/Detect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Detect.cxx b/src/Detect.cxx
index d1ad8ec..60ecb58 100644
--- a/src/Detect.cxx
+++ b/src/Detect.cxx
@@ -186,7 +186,7 @@ static bool detectCC_MSVC(const char* const* argBeg, const char* const* argEnd,
includes_ref.split(includes, ";", -1, false);
for (llvm::StringRef i : includes) {
if (!i.empty()) {
- std::string inc = i;
+ std::string inc(i);
std::replace(inc.begin(), inc.end(), '\\', '/');
opts.Includes.push_back(inc);
}