summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-23 00:52:30 +0000
committerChris Lattner <sabre@nondot.org>2005-12-23 00:52:30 +0000
commit884eb3adc393238995ceb941734bf0691fc7643c (patch)
tree97ea4559b0cf482dacadd52a5dda238ad3ff9419 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent9eae8d5d0389537544cb9abd1f01a6fbcdde2f3c (diff)
downloadbcm5719-llvm-884eb3adc393238995ceb941734bf0691fc7643c.tar.gz
bcm5719-llvm-884eb3adc393238995ceb941734bf0691fc7643c.zip
Fix a pasto
llvm-svn: 24973
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 43133edc0d0..879c7614de6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud