[HIPIFY] Fix build failure against ToT trunk LLVM 11.0.0

+ Add an explicit cast when assigning StringRef to std::string
Ta zmiana jest zawarta w:
%! (template.HTML=Evgeny Mankov)złożyło 2020-02-01 14:41:16 +03:00
1 rodzic cb632005bc
złożenie c396b5b6e5
3 plików zmienionych
+4 -4

Żadne pliki nie pasują do Twojego wyszukiwania

+1 -1
Wyświetl plik
@@ -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