Skip to content

Commit 559e17c

Browse files
committed
Fix build failure
1 parent 5d53f53 commit 559e17c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/tools/libclang/CDependencies.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ static CXErrorCode getFullDependencies(DependencyScanningWorker *Worker,
268268
M.Name = cxstring::createDup(MD.ID.ModuleName);
269269
M.ContextHash = cxstring::createDup(MD.ID.ContextHash);
270270
M.ModuleMapPath = cxstring::createDup(MD.ClangModuleMapFile);
271-
M.FileDeps = cxstring::createSet(MD.FileDeps);
271+
std::vector<std::string> FileDeps;
272+
MD.forEachFileDep([&](StringRef File) { FileDeps.emplace_back(File); });
273+
M.FileDeps = cxstring::createSet(FileDeps);
272274
std::vector<std::string> Modules;
273275
for (ModuleID &MID : MD.ClangModuleDeps)
274276
Modules.push_back(MID.ModuleName + ":" + MID.ContextHash);

0 commit comments

Comments
 (0)