[MIR] Fix CFI_INSTRUCTION escape printing
authorScott Linder <Scott.Linder@amd.com>
Wed, 24 Jun 2020 22:15:27 +0000 (18:15 -0400)
committerScott Linder <Scott.Linder@amd.com>
Wed, 24 Jun 2020 22:15:28 +0000 (18:15 -0400)
commit4d81aec40c62a0599a4bfbd7b45df78b302dbc3c
treec77b7fa834610b7cd462d42d307b8a1482af8177
parent8fe9d2a20677b3f0d01db05fc4bb9373f8ea8dc2
[MIR] Fix CFI_INSTRUCTION escape printing

Summary:
The printer seems to intend to not print the trailing comma but has a
copy-paste error for the last value in the escape, and the parser
enforces having no trailing comma, but somehow a test was never included
to actually confirm it.

Reviewers: thegameg, arsenm

Reviewed By: thegameg, arsenm

Subscribers: wdng, arsenm, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82478
llvm/lib/CodeGen/MachineOperand.cpp
llvm/test/CodeGen/MIR/AArch64/cfi.mir
llvm/test/CodeGen/MIR/Generic/cfi-escape.mir [new file with mode: 0644]