Skip to content

Commit

Permalink
clang-tidy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Aug 19, 2023
1 parent 0dcbd58 commit 9c88480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llvm_state_mem_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void llvm_state_mem_cache_sanity_checks()
std::optional<llvm_mc_value> llvm_state_mem_cache_lookup(const std::string &bc, unsigned opt_level)
{
// Lock down.
std::lock_guard lock(mem_cache_mutex);
const std::lock_guard lock(mem_cache_mutex);

// Sanity checks.
llvm_state_mem_cache_sanity_checks();
Expand All @@ -160,7 +160,7 @@ std::optional<llvm_mc_value> llvm_state_mem_cache_lookup(const std::string &bc,
void llvm_state_mem_cache_try_insert(std::string bc, unsigned opt_level, llvm_mc_value val)
{
// Lock down.
std::lock_guard lock(mem_cache_mutex);
const std::lock_guard lock(mem_cache_mutex);

// Sanity checks.
llvm_state_mem_cache_sanity_checks();
Expand Down

0 comments on commit 9c88480

Please sign in to comment.