Remove unused lambda captures. NFC

llvm-svn: 291941
This commit is contained in:
Malcolm Parsons 2017-01-13 19:02:50 +00:00
parent 3c3ae0e6db
commit e65b1029ca

View File

@ -207,8 +207,8 @@ runClangMoveOnCode(const move::MoveDefinitionSpec &Spec,
std::vector<std::pair<std::string, std::string>> FileToSourceText = {
{TestHeaderName, Header}, {TestCCName, CC}};
auto CreateFiles = [&FileToSourceText, &Context, &FileToFileID](
llvm::StringRef Name, llvm::StringRef Code) {
auto CreateFiles = [&Context, &FileToFileID](llvm::StringRef Name,
llvm::StringRef Code) {
if (!Name.empty()) {
FileToFileID[Name] = Context.createInMemoryFile(Name, Code);
}