From a245c765a8fe23c689e34acd29f6f8863a1da369 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Tue, 19 Jun 2018 18:39:40 +0000 Subject: [MIRParser] Update a diagnostic message to use the correct register sigil. NFC Summary: Patch r323922 changed the sigil for physical registers to '$', instead of '%'. An error message was missed during this change, and reports the wrong sigil. This patch corrects that diagnostic and the tests that check that error string. Reviewers: zer0, bjope Reviewed By: bjope Subscribers: bjope, thegameg, plotfi, llvm-commits Differential Revision: https://reviews.llvm.org/D48086 llvm-svn: 335066 --- llvm/lib/CodeGen/MIRParser/MIParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp') diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index 3532b42fa64..63e5d4d8e8c 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -929,7 +929,7 @@ bool MIParser::verifyImplicitOperands(ArrayRef Operands, continue; return error(Operands.empty() ? Token.location() : Operands.back().End, Twine("missing implicit register operand '") + - printImplicitRegisterFlag(I) + " %" + + printImplicitRegisterFlag(I) + " $" + getRegisterName(TRI, I.getReg()) + "'"); } return false; -- cgit v1.2.3