This is an archive of the discontinued LLVM Phabricator instance.

[MIPS] Add static_assert that all Fixups are handled in getFixupKind
ClosedPublic

Authored by arichardson on Mar 26 2018, 6:06 AM.

Details

Summary

I recently added a new Fixup kind to our fork of LLVM but forgot to add
it to the table in MipsAsmBackend.cpp. With this static_assert the error
would have been caught instead of zero-initializing the array entries for
the new fixups.

Diff Detail

Repository
rL LLVM

Event Timeline

arichardson created this revision.Mar 26 2018, 6:06 AM
This revision is now accepted and ready to land.Mar 26 2018, 7:04 AM
This revision was automatically updated to reflect the committed changes.