Skip to content

Commit 462d61f

Browse files
Automated Code Change
PiperOrigin-RevId: 895116785
1 parent 5cc9641 commit 462d61f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

third_party/xla/xla/service/gpu/llvm_gpu_backend/amdgpu_backend.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ struct HsacoCache {
203203
bool hit = false;
204204
request_count_++;
205205
{
206-
absl::MutexLock lock(&mutex_);
206+
absl::MutexLock lock(mutex_);
207207
if (auto it = hsaco_cache_.find(hash_val); it != hsaco_cache_.end()) {
208208
hit = true, *result = it->second;
209209
}
@@ -241,7 +241,7 @@ struct HsacoCache {
241241
void Insert(const HashType& hash_val, int64_t bitcode_size,
242242
const std::string& src_path, const std::string& tgt_path,
243243
const amdgpu::HsacoResult& result) {
244-
absl::MutexLock lock(&mutex_);
244+
absl::MutexLock lock(mutex_);
245245
hsaco_cache_.emplace(hash_val, result);
246246

247247
if (!hsaco_cache_dir_.empty() && bitcode_size >= bitcode_size_threshold_) {

0 commit comments

Comments
 (0)