Skip to content

Commit 578cda7

Browse files
authored
spirv-dis: Fix missing color on result ID (KhronosGroup#6272)
A previous refactoring of the code (c3178da) accidentally broke coloring of result ids, which this change fixes.
1 parent 44cf554 commit 578cda7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/disassemble.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,12 +694,12 @@ void InstructionDisassembler::EmitInstructionImpl(
694694
}
695695

696696
if (inst.result_id) {
697-
SetBlue();
697+
SetBlue(line);
698698
const std::string id_name = name_mapper_(inst.result_id);
699699
if (indent_)
700700
line << std::setw(std::max(0, indent_ - 3 - int(id_name.size())));
701701
line << "%" << id_name;
702-
ResetColor();
702+
ResetColor(line);
703703
line << " = ";
704704
} else {
705705
line << std::string(indent_, ' ');

0 commit comments

Comments
 (0)