This is an archive of the discontinued LLVM Phabricator instance.

[MC] - llvm-mc hangs on non-english characters.
ClosedPublic

Authored by grimar on Oct 4 2017, 8:47 AM.

Details

Summary

This fixes PR33255.

Currently llvm-mc just hangs inside infinite loop while trying to parse file
which has ".section .с" inside, where section name is non-english character.

In this patch I also moved content of non-english-characters.s to test/MC/AsmParser/Inputs folder
so that non-english-characters.s becomes a single testcase for all invalid inputs
containing non-english symbols. That is convinent because llvm-mc otherwise tries
to parse and tokenize the whole testcase file with tools invocations and it is harder to isolate the issue.

Diff Detail

Event Timeline

grimar created this revision.Oct 4 2017, 8:47 AM
rnk accepted this revision.Oct 4 2017, 9:04 AM

lgtm

This revision is now accepted and ready to land.Oct 4 2017, 9:04 AM
grimar added a comment.Oct 4 2017, 9:16 AM
In D38545#888290, @rnk wrote:

lgtm

Thanks for review ! Going to commit it tomorrow.

davide edited edge metadata.Oct 4 2017, 10:00 AM

sounds good.

This revision was automatically updated to reflect the committed changes.