[HIPIFY] Fix build failure against ToT trunk LLVM 11.0.0

+ Add an explicit cast when assigning StringRef to std::string
Этот коммит содержится в:
Evgeny Mankov committed 2020-02-01 14:41:16 +03:00
1 родитель cb632005bc
Коммит c396b5b6e5
3 files changed
+4 -4

No files matched your search

+1 -1
Просмотреть файл
@@ -124,7 +124,7 @@ void appendArgumentsAdjusters(ct::RefactoringTool &Tool, const std::string &sSou
// Includes for clang's CUDA wrappers for using by packaged hipify-clang
static int Dummy;
std::string hipify = llvm::sys::fs::getMainExecutable(hipify_exe, (void *)&Dummy);
std::string clang_inc_path = llvm::sys::path::parent_path(hipify);
std::string clang_inc_path = std::string(llvm::sys::path::parent_path(hipify));
clang_inc_path.append("/include");
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster(clang_inc_path.c_str(), ct::ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-isystem", ct::ArgumentInsertPosition::BEGIN));