[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user