This is an archive of the discontinued LLVM Phabricator instance.

[MIRParser] Update a diagnostic message to use the correct register sigil. NFC
ClosedPublic

Authored by mattd on Jun 12 2018, 11:01 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mattd created this revision.Jun 12 2018, 11:01 AM
plotfi added a subscriber: plotfi.Jun 12 2018, 11:50 AM

I did the sigil change and now I'm curious why I hadn't hit this a few months back. Do you know why?

It looks like you simply missed the diagnostic, and not any functional part. I only discovered it because I was messing around with a .mir test and noticed the error message. I'm guessing your search/replace didn't cover the case of an isolated '$'

Ping. Just checking back in to make sure that this patch makes sense.

bjope accepted this revision.Jun 19 2018, 10:46 AM
bjope added a subscriber: bjope.

LGTM!

This revision is now accepted and ready to land.Jun 19 2018, 10:46 AM

Thanks for the review @bjope!

This revision was automatically updated to reflect the committed changes.