diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-23 00:52:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-23 00:52:30 +0000 |
commit | 232348d66fcfe8f42f8b14cfacd2df3d00d2596e (patch) | |
tree | 75e45739a21fb9ca0dbad127a697d482abbf2962 /lib/CodeGen | |
parent | ed7b5babfbdc708c564266052ad3b0ce0a5726c5 (diff) |
Fix a pasto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 43133edc0d..879c7614de 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2793,13 +2793,14 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) { } /// 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 SrcOp) { // Create the stack frame object. MachineFrameInfo *FrameInfo = DAG.getMachineFunction().getFrameInfo(); 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()); // Emit a store to the stack slot. |