This is an archive of the discontinued LLVM Phabricator instance.

[AsmParser] Return an error in the case of empty symbol ref in an expression
ClosedPublic

Authored by thegameg on Sep 28 2018, 4:13 AM.

Details

Summary

The following instruction:

str q28, [x0, #1*6*4*@]

contains a @ which is parsed as an empty symbol. The parser returns true but has no error, so the assembler continues by ignoring the instruction.

This check was introduced by D26728 to avoid asserting.

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Sep 28 2018, 4:13 AM
t.p.northover accepted this revision.Oct 8 2018, 2:26 AM

Looks fine to me.

This revision is now accepted and ready to land.Oct 8 2018, 2:26 AM
This revision was automatically updated to reflect the committed changes.