This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Fix warning when compiling generated MCCodeEmitter
ClosedPublic

Authored by foad on Mar 4 2021, 6:02 AM.

Details

Summary

This fixes an instance of:
warning: cast from 'const unsigned long *' to 'unsigned char *' drops const qualifier [-Wcast-qual]
when compiling the generated MCCodeEmitter for an out-of-tree target
that uses the optional support for instruction widths > 64 bits.

Diff Detail

Event Timeline

foad requested review of this revision.Mar 4 2021, 6:02 AM
foad created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2021, 6:02 AM
This revision is now accepted and ready to land.Mar 4 2021, 10:15 AM
This revision was landed with ongoing or failed builds.Mar 4 2021, 10:35 AM
This revision was automatically updated to reflect the committed changes.