aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2022-06-12 16:03:30 +0200
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2022-06-12 16:08:23 +0200
commit7095a1ff82b9fe292f871f0e873c2ac56328e8a6 (patch)
treeb4b844df9bc5d125b9d7336469aaa4414a5f3881 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentef501bf85d8c869248e51371f0e74bcec0e7b229 (diff)
downloadllvm-7095a1ff82b9fe292f871f0e873c2ac56328e8a6.zip
llvm-7095a1ff82b9fe292f871f0e873c2ac56328e8a6.tar.gz
llvm-7095a1ff82b9fe292f871f0e873c2ac56328e8a6.tar.bz2
Fix endian conversion of sub-byte types
When convertEndianOfCharForBEmachine is called with elementBitWidth smaller than CHAR_BIT, the default case is invoked, but this does nothing at all and leaves the output array unchanged. Fix DenseIntOrFPElementsAttr::convertEndianOfArrayRefForBEmachine by not calling convertEndianOfCharForBEmachine in this case, and instead simply copying the input to the output (for sub-byte types, endian conversion is in fact a no-op). Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D125676
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions