From 8b5241859a8122df0aa039f3e92aad51bc2442fd Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 18 Mar 2025 08:07:38 -0700 Subject: 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 --- cc/compdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), } } -- cgit v1.2.3-59-g8ed1b