Skip to content

Commit

Permalink
Fix clang-tidy bugprone-argument-comment that was mixed up
Browse files Browse the repository at this point in the history
Several of the comments were annotating the wrong argument.

I caught this while reviewing this clean-up: 8afcfbf

which was changing booleans to use true and false and in the this case the comment and the type looked mismatched.

Differential Revision: https://reviews.llvm.org/D116982
  • Loading branch information
shafik committed Jan 11, 2022
1 parent 0ceb332 commit c0e4154
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lldb/source/Target/TraceInstructionDumper.cpp
Expand Up @@ -148,9 +148,8 @@ static void DumpInstructionDisassembly(Stream &s, InstructionSymbolInfo &insn) {
if (!insn.instruction)
return;
s.Printf(" ");
insn.instruction->Dump(&s, /*show_address=*/false, /*show_bytes=*/false,
/*max_opcode_byte_size=*/false, &insn.exe_ctx,
&insn.sc,
insn.instruction->Dump(&s, /*max_opcode_byte_size=*/0, /*show_address=*/false,
/*show_bytes=*/false, &insn.exe_ctx, &insn.sc,
/*prev_sym_ctx=*/nullptr,
/*disassembly_addr_format=*/nullptr,
/*max_address_text_size=*/0);
Expand Down

0 comments on commit c0e4154

Please sign in to comment.