[LLDB] Fix build error after D142214
authorJay Foad <jay.foad@amd.com>
Mon, 23 Jan 2023 12:27:50 +0000 (12:27 +0000)
committerJay Foad <jay.foad@amd.com>
Mon, 23 Jan 2023 12:28:06 +0000 (12:28 +0000)
lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp

index 6ae5f2a..ed3b3e6 100644 (file)
@@ -1384,7 +1384,7 @@ bool DisassemblerLLVMC::MCDisasmInstance::IsLoad(llvm::MCInst &mc_inst) const {
 
 bool DisassemblerLLVMC::MCDisasmInstance::IsAuthenticated(
     llvm::MCInst &mc_inst) const {
-  auto InstrDesc = m_instr_info_up->get(mc_inst.getOpcode());
+  const auto &InstrDesc = m_instr_info_up->get(mc_inst.getOpcode());
 
   // Treat software auth traps (brk 0xc470 + aut key, where 0x70 == 'p', 0xc4
   // == 'a' + 'c') as authenticated instructions for reporting purposes, in