mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 11:06:06 +00:00

WithMarkup objects may nest, resulting in the `)` in `leaq (%rdx,%rax), %rbx` to be green instead of the default color, mismatching the color of `(`. ``` % llvm-mc -triple=x86_64 -mdis <<< '0x48 0x8d 0x1c 0x02' .text leaq <mem:(<reg:%rdx>,<reg:%rax>)>, <reg:%rbx> ``` To ensure that `(` and `)` get the same color, maintain a color stack within MCInstPrinter. Fix #99661 Pull Request: https://github.com/llvm/llvm-project/pull/113834