commit | 8ab0c0606608d547478b3cddf5bf0238e72208ba | [log] [tgz] |
---|---|---|
author | Alex Bradbury <asb@lowrisc.org> | Wed Mar 13 09:22:57 2019 +0000 |
committer | Alex Bradbury <asb@lowrisc.org> | Wed Mar 13 09:22:57 2019 +0000 |
tree | 05d4ad832be54cc1f774886bbf5ae3752a4b5e51 | |
parent | 4361ad0ab2a7ab78121207de8ec4542ff71627cc [diff] |
[RISCV] Replace incorrect use of sizeof with array_lengthof RISCVDisassembler was incorrectly using sizeof(Arr) when it should have used sizeof(Arr)/sizeof(Arr[0]). Update to use array_lengthof instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356035 91177308-0d34-0410-b5e6-96231b3b80d8