[HIPIFY] Fix build failure against ToT trunk LLVM 11.0.0

+ Add an explicit cast when assigning StringRef to std::string


[ROCm/hip commit: 58906beac9]
This commit is contained in:
Evgeny Mankov
2020-02-01 14:41:16 +03:00
parent 61156d3b2d
commit 3f524b4e17
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ ct::Replacements &getReplacements(ct::RefactoringTool &Tool, StringRef file) {
#if LLVM_VERSION_MAJOR > 3
// getReplacements() now returns a map from filename to Replacements - so create an entry
// for this source file and return a reference to it.
return Tool.getReplacements()[file];
return Tool.getReplacements()[std::string(file)];
#else
return Tool.getReplacements();
#endif