
#include "mips_memory.h"
#include "mips_instr.h"

#include <infra/instrcache/instr_cache.h>

FuncInstr MIPSMemory::fetch_instr( Addr PC)
{
    const auto [found, value] = instr_cache.find( PC); // NOLINT https://bugs.llvm.org/show_bug.cgi?id=36283

    FuncInstr instr = found ? value : FuncInstr( fetch( PC), PC);

    instr_cache.update( PC, instr);

    return instr;
}


#include "mips_memory.h"
#include "mips_instr.h"

#include <infra/instrcache/instr_cache.h>

FuncInstr MIPSMemory::fetch_instr( Addr PC)
{
    const auto [found, value] = instr_cache.find( PC);

    FuncInstr instr = found ? value : FuncInstr( fetch( PC), PC);

    instr_cache.update( PC, instr);

    return instr;
}

--- 
+++ 
@@ -6,7 +6,7 @@
 
 FuncInstr MIPSMemory::fetch_instr( Addr PC)
 {
-    const auto [found, value] = instr_cache.find( PC);
+    const auto [found, value] = instr_cache.find( PC); // NOLINT https://bugs.llvm.org/show_bug.cgi?id=36283
 
     FuncInstr instr = found ? value : FuncInstr( fetch( PC), PC);
 
Add NOLINT to C++17 structured binding code