Merge branch 'dietoref1-2prep-2-3-4-5-6-7-dwzpair-altlink-sharedstmt-dieref-dwz3...
[lldb.git] / clang-tools-extra / clang-include-fixer / plugin / IncludeFixerPlugin.cpp
index bc9c497..7908a89 100644 (file)
@@ -41,7 +41,7 @@ public:
     CI.setExternalSemaSource(SemaSource);
     SemaSource->setFilePath(InFile);
     SemaSource->setCompilerInstance(&CI);
-    return llvm::make_unique<ASTConsumerManagerWrapper>(SymbolIndexMgr);
+    return std::make_unique<ASTConsumerManagerWrapper>(SymbolIndexMgr);
   }
 
   void ExecuteAction() override {} // Do nothing.
@@ -60,7 +60,8 @@ public:
         Input = Arg.substr(strlen("-input="));
     }
 
-    std::string InputFile = CI.getFrontendOpts().Inputs[0].getFile();
+    std::string InputFile =
+        std::string(CI.getFrontendOpts().Inputs[0].getFile());
     auto CreateYamlIdx = [=]() -> std::unique_ptr<include_fixer::SymbolIndex> {
       llvm::ErrorOr<std::unique_ptr<include_fixer::YamlSymbolIndex>> SymbolIdx(
           nullptr);