This is an archive of the discontinued LLVM Phabricator instance.

[X86][NFC] MnemonicTables: only access RI fields if they're initialized
ClosedPublic

Authored by Amir on Mar 21 2022, 7:46 AM.

Details

Summary

Fix an issue reported by UBSan.

Test Plan:
Configure with -DLLVM_USE_SANITIZER="Address;Undefined"
ninja llc

Diff Detail

Event Timeline

Amir created this revision.Mar 21 2022, 7:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 7:46 AM
Amir requested review of this revision.Mar 21 2022, 7:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 7:46 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 21 2022, 9:25 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
skan added a comment.Mar 21 2022, 6:00 PM

Looks reasonable.