mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Fix a pasto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2793,13 +2793,14 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// ExpandBIT_CONVERT - Expand a BIT_CONVERT node into a store/load combination.
|
/// ExpandBIT_CONVERT - Expand a BIT_CONVERT node into a store/load combination.
|
||||||
/// The resultant code need not be legal.
|
/// The resultant code need not be legal. Note that SrcOp is the input operand
|
||||||
|
/// to the BIT_CONVERT, not the BIT_CONVERT node itself.
|
||||||
SDOperand SelectionDAGLegalize::ExpandBIT_CONVERT(MVT::ValueType DestVT,
|
SDOperand SelectionDAGLegalize::ExpandBIT_CONVERT(MVT::ValueType DestVT,
|
||||||
SDOperand SrcOp) {
|
SDOperand SrcOp) {
|
||||||
// Create the stack frame object.
|
// Create the stack frame object.
|
||||||
MachineFrameInfo *FrameInfo = DAG.getMachineFunction().getFrameInfo();
|
MachineFrameInfo *FrameInfo = DAG.getMachineFunction().getFrameInfo();
|
||||||
unsigned ByteSize = MVT::getSizeInBits(DestVT)/8;
|
unsigned ByteSize = MVT::getSizeInBits(DestVT)/8;
|
||||||
int FrameIdx = FrameInfo->CreateFixedObject(ByteSize, ByteSize);
|
int FrameIdx = FrameInfo->CreateStackObject(ByteSize, ByteSize);
|
||||||
SDOperand FIPtr = DAG.getFrameIndex(FrameIdx, TLI.getPointerTy());
|
SDOperand FIPtr = DAG.getFrameIndex(FrameIdx, TLI.getPointerTy());
|
||||||
|
|
||||||
// Emit a store to the stack slot.
|
// Emit a store to the stack slot.
|
||||||
|
Reference in New Issue
Block a user