mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
When allocating a stack temporary, use the correct
number of bytes for types such as i1 which are not a multiple of 8 bits in length. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23f2ff74b1
commit
9304f2c294
@ -1237,7 +1237,7 @@ SDValue SelectionDAG::getMemOperand(const MachineMemOperand &MO) {
|
||||
/// specified value type.
|
||||
SDValue SelectionDAG::CreateStackTemporary(MVT VT, unsigned minAlign) {
|
||||
MachineFrameInfo *FrameInfo = getMachineFunction().getFrameInfo();
|
||||
unsigned ByteSize = VT.getSizeInBits()/8;
|
||||
unsigned ByteSize = VT.getStoreSizeInBits()/8;
|
||||
const Type *Ty = VT.getTypeForMVT();
|
||||
unsigned StackAlign =
|
||||
std::max((unsigned)TLI.getTargetData()->getPrefTypeAlignment(Ty), minAlign);
|
||||
|
Loading…
x
Reference in New Issue
Block a user