This is an archive of the discontinued LLVM Phabricator instance.

Avoid accessing LLVM/DWARF register mappings if undefined
ClosedPublic

Authored by ddcc on Aug 12 2016, 11:14 AM.

Details

Summary

If the backend does not define LLVM/DWARF register mappings, the associated
variables are undefined since the map initializer is called by auto-generated
TableGen routines. This patch initializes the pointers and sizes to nullptr
and zero, respectively, and checks that they are valid before searching
for a mapping.

Diff Detail

Repository
rL LLVM

Event Timeline

ddcc updated this revision to Diff 67866.Aug 12 2016, 11:14 AM
ddcc retitled this revision from to Avoid accessing LLVM/DWARF register mappings if undefined.
ddcc updated this object.
dschuff accepted this revision.Aug 12 2016, 2:56 PM
dschuff edited edge metadata.
This revision is now accepted and ready to land.Aug 12 2016, 2:56 PM
This revision was automatically updated to reflect the committed changes.