aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-04-27 14:56:30 -0700
committerEli Friedman <efriedma@quicinc.com>2020-04-27 14:57:29 -0700
commitf30416fdde922eaa655934e050026930fefbd260 (patch)
tree07c2d163260a8288d037f06eecbfbc328224c435 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent7a8c226ba87d93e86d8beac280adc949b7af764d (diff)
downloadllvm-f30416fdde922eaa655934e050026930fefbd260.zip
llvm-f30416fdde922eaa655934e050026930fefbd260.tar.gz
llvm-f30416fdde922eaa655934e050026930fefbd260.tar.bz2
[AsmPrinter] Fix emission of non-standard integer constants for BE targets
The code assumed that zero-extending the integer constant to the designated alloc size would be fine even for BE targets, but that's not the case as that pulls in zeros from the MSB side while we actually expect the padding zeros to go after the LSB. I've changed the codepath handling the constant integers to use the store size for both small(er than u64) and big constants and then add zero padding right after that. Differential Revision: https://reviews.llvm.org/D78011
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions