This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Report a normal instead of fatal error for label redefinition
ClosedPublic

Authored by john.brawn on Mar 8 2021, 7:59 AM.

Details

Summary

A symbol being redefined as a label is something that can happen as a result of ordinary input, so it shouldn't cause a fatal error. Also adjust the error message to match the one you get when a symbol is redefined as a variable.

Diff Detail

Event Timeline

john.brawn created this revision.Mar 8 2021, 7:59 AM
john.brawn requested review of this revision.Mar 8 2021, 7:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2021, 7:59 AM
MaskRay accepted this revision.Mar 8 2021, 10:31 AM

Looks great!

This revision is now accepted and ready to land.Mar 8 2021, 10:31 AM