File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
clang/tools/clang-scan-deps Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -525,15 +525,18 @@ class FullDeps {
525
525
public:
526
526
void mergeDeps (StringRef Input, TranslationUnitDeps TUDeps,
527
527
size_t InputIndex) {
528
+ mergeDeps (std::move (TUDeps.ModuleGraph ), InputIndex);
529
+
528
530
InputDeps ID;
529
531
ID.FileName = std::string (Input);
530
532
ID.ContextHash = std::move (TUDeps.ID .ContextHash );
531
533
ID.FileDeps = std::move (TUDeps.FileDeps );
532
534
ID.ModuleDeps = std::move (TUDeps.ClangModuleDeps );
533
535
ID.CASFileSystemRootID = TUDeps.CASFileSystemRootID ;
534
- mergeDeps (std::move (TUDeps.ModuleGraph ), InputIndex);
535
536
ID.DriverCommandLine = std::move (TUDeps.DriverCommandLine );
536
537
ID.Commands = std::move (TUDeps.Commands );
538
+
539
+ std::unique_lock<std::mutex> ul (Lock);
537
540
Inputs.push_back (std::move (ID));
538
541
}
539
542
You can’t perform that action at this time.
0 commit comments