summaryrefslogtreecommitdiff
path: root/cc/tidy.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-03-13 18:36:35 +0000
committer Yu Liu <yudiliu@google.com> 2025-03-13 18:36:35 +0000
commitf22120fb1da7f75a571966124bb0da6a57fd4f07 (patch)
tree9ffabf8102382f54c89595a59e3211eccd766217 /cc/tidy.go
parent7c18e7f15b997e0e3199111446e0511ffd96b811 (diff)
Change CommonModuleInfoProvider to a pointer.
Bug: 358427516 Test: Manually verified genereated ninja and mk files, unit tests. Change-Id: I53a6dd718232735decbeb93febfd269dd9449e86
Diffstat (limited to 'cc/tidy.go')
-rw-r--r--cc/tidy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/tidy.go b/cc/tidy.go
index e8e1dc29d..bf273e986 100644
--- a/cc/tidy.go
+++ b/cc/tidy.go
@@ -220,7 +220,7 @@ func collectTidyObjModuleTargets(ctx android.SingletonContext, module android.Mo
// (1) Collect all obj/tidy files into OS-specific groups.
ctx.VisitAllModuleVariantProxies(module, func(variant android.ModuleProxy) {
- osName := android.OtherModuleProviderOrDefault(ctx, variant, android.CommonModuleInfoProvider).Target.Os.Name
+ osName := android.OtherModulePointerProviderOrDefault(ctx, variant, android.CommonModuleInfoProvider).Target.Os.Name
info := android.OtherModuleProviderOrDefault(ctx, variant, CcObjectInfoProvider)
addToOSGroup(osName, info.ObjFiles, allObjFileGroups, subsetObjFileGroups)
addToOSGroup(osName, info.TidyFiles, allTidyFileGroups, subsetTidyFileGroups)