aboutsummaryrefslogtreecommitdiff
path: root/cc/ndk_library.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r--cc/ndk_library.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index c21fe564b..69092b79c 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -298,17 +298,17 @@ func CompileStubLibrary(ctx android.ModuleContext, flags Flags, src android.Path
func (this *stubDecorator) findImplementationLibrary(ctx ModuleContext) android.Path {
dep := ctx.GetDirectDepProxyWithTag(strings.TrimSuffix(ctx.ModuleName(), ndkLibrarySuffix),
stubImplementation)
- if dep == nil {
+ if dep.IsNil() {
ctx.ModuleErrorf("Could not find implementation for stub: ")
return nil
}
- if _, ok := android.OtherModuleProvider(ctx, *dep, CcInfoProvider); !ok {
+ if _, ok := android.OtherModuleProvider(ctx, dep, CcInfoProvider); !ok {
ctx.ModuleErrorf("Implementation for stub is not correct module type")
return nil
}
- output := android.OtherModuleProviderOrDefault(ctx, *dep, LinkableInfoProvider).UnstrippedOutputFile
+ output := android.OtherModuleProviderOrDefault(ctx, dep, LinkableInfoProvider).UnstrippedOutputFile
if output == nil {
- ctx.ModuleErrorf("implementation module (%s) has no output", *dep)
+ ctx.ModuleErrorf("implementation module (%s) has no output", dep)
return nil
}