[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Dec 22 16:52:42 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.244 -> 1.245
---
Log message:

Fix a pasto


---
Diffs of the changes:  (+3 -2)

 LegalizeDAG.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.244 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.245
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.244	Thu Dec 22 18:50:25 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Thu Dec 22 18:52:30 2005
@@ -2793,13 +2793,14 @@
 }
 
 /// 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.






More information about the llvm-commits mailing list