summaryrefslogtreecommitdiff
path: root/testing/all_code_metadata.go
diff options
context:
space:
mode:
Diffstat (limited to 'testing/all_code_metadata.go')
-rw-r--r--testing/all_code_metadata.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/testing/all_code_metadata.go b/testing/all_code_metadata.go
index 16d7aae66..12aa7b51f 100644
--- a/testing/all_code_metadata.go
+++ b/testing/all_code_metadata.go
@@ -21,14 +21,9 @@ func (this *allCodeMetadataSingleton) GenerateBuildActions(ctx android.Singleton
ctx.VisitAllModules(
func(module android.Module) {
- if !ctx.ModuleHasProvider(module, CodeMetadataProviderKey) {
- return
+ if metadata, ok := android.SingletonModuleProvider(ctx, module, CodeMetadataProviderKey); ok {
+ intermediateMetadataPaths = append(intermediateMetadataPaths, metadata.IntermediatePath)
}
- intermediateMetadataPaths = append(
- intermediateMetadataPaths, ctx.ModuleProvider(
- module, CodeMetadataProviderKey,
- ).(CodeMetadataProviderData).IntermediatePath,
- )
},
)