This is an archive of the discontinued LLVM Phabricator instance.

[X86] Don't affect jump tables under +tagged-globals.
ClosedPublic

Authored by morehouse on Oct 29 2021, 9:57 AM.

Details

Summary

classifyLocalReference(nullptr) is called to get the appropriate
relocation type for jump tables. We should not use @GOTPCREL for this
case.

The new test cases trigger assertions without this patch.

Diff Detail

Event Timeline

morehouse created this revision.Oct 29 2021, 9:57 AM
morehouse requested review of this revision.Oct 29 2021, 9:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 9:57 AM
morehouse added a project: Restricted Project.Oct 29 2021, 9:57 AM
This revision is now accepted and ready to land.Oct 29 2021, 10:22 AM
This revision was landed with ongoing or failed builds.Oct 29 2021, 10:38 AM
This revision was automatically updated to reflect the committed changes.