summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tamir Duberstein <tamird@gmail.com> 2025-03-18 08:07:38 -0700
committer Tamir Duberstein <tamird@gmail.com> 2025-03-18 08:11:17 -0700
commit8b5241859a8122df0aa039f3e92aad51bc2442fd (patch)
tree0048e72e199212c3b9979ed6374f09b325765ded
parentbe6f81d61e25753eeecdb65bdf7dd2bb6d4c1a5c (diff)
Don't call `getArguments` unnecessarily
Remove a second call to `getArguments` by reusing the value returned from the first call. That call was added in Ie6dd9b13711bae65f6fd6d1a5286307cd0cf2ad3 which neglected to perform this simplification. Change-Id: I2186db1fa3158886dc785557e977e7a25bfe4c72
-rw-r--r--cc/compdb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/compdb.go b/cc/compdb.go
index 4132e090b..3818e9c46 100644
--- a/cc/compdb.go
+++ b/cc/compdb.go
@@ -193,7 +193,7 @@ func generateCompdbProject(compiledModule CompiledInterface, ctx android.Singlet
}
builds[src.String()] = compDbEntry{
Directory: android.AbsSrcDirForExistingUseCases(),
- Arguments: getArguments(src, ctx, ccModule, ccPath, cxxPath),
+ Arguments: args,
File: src.String(),
}
}