diff options
author | Scott Linder <Scott.Linder@amd.com> | 2020-06-24 18:15:27 -0400 |
---|---|---|
committer | Scott Linder <Scott.Linder@amd.com> | 2020-06-24 18:15:28 -0400 |
commit | 4d81aec40c62a0599a4bfbd7b45df78b302dbc3c (patch) | |
tree | c77b7fa834610b7cd462d42d307b8a1482af8177 /llvm/lib/CodeGen | |
parent | 8fe9d2a20677b3f0d01db05fc4bb9373f8ea8dc2 (diff) | |
download | llvm-4d81aec40c62a0599a4bfbd7b45df78b302dbc3c.zip llvm-4d81aec40c62a0599a4bfbd7b45df78b302dbc3c.tar.gz llvm-4d81aec40c62a0599a4bfbd7b45df78b302dbc3c.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index 912b306..2b4fd65 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -670,7 +670,7 @@ static void printCFI(raw_ostream &OS, const MCCFIInstruction &CFI, size_t e = CFI.getValues().size() - 1; for (size_t i = 0; i < e; ++i) OS << format("0x%02x", uint8_t(CFI.getValues()[i])) << ", "; - OS << format("0x%02x", uint8_t(CFI.getValues()[e])) << ", "; + OS << format("0x%02x", uint8_t(CFI.getValues()[e])); } break; } |