Skip to content

Commit 23f75b6

Browse files
committed
Fix build failure and a test.
1 parent 611dd6f commit 23f75b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clang/test/ClangScanDeps/optimize-vfs-pch-tree.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
// CHECK-NEXT: "clang-module-deps": [
5454
// CHECK-NEXT: {
5555
// CHECK-NEXT: "context-hash": "{{.*}}",
56-
// CHECK-NEXT: "module-name": "E"
56+
// CHECK-NEXT: "module-name": "E",
57+
// CHECK-NEXT: "exported": "true"
5758
// CHECK-NEXT: }
5859
// CHECK-NEXT: ],
5960
// CHECK-NEXT: "clang-modulemap-file": "[[PREFIX]]/modules/D/module.modulemap",

clang/tools/libclang/CDependencies.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ clang_experimental_DepGraphModule_getModuleDeps(CXDepGraphModule CXDepMod) {
441441
const ModuleDeps &ModDeps = *unwrap(CXDepMod)->ModDeps;
442442
std::vector<std::string> Modules;
443443
Modules.reserve(ModDeps.ClangModuleDeps.size());
444-
for (const ModuleID &MID : ModDeps.ClangModuleDeps)
445-
Modules.push_back(MID.ModuleName + ":" + MID.ContextHash);
444+
for (const auto &Info : ModDeps.ClangModuleDeps)
445+
Modules.push_back(Info.ID.ModuleName + ":" + Info.ID.ContextHash);
446446
return unwrap(CXDepMod)->StrMgr.createCStringsOwned(std::move(Modules));
447447
}
448448

0 commit comments

Comments
 (0)