diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-11 22:44:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-11 22:44:52 +0000 |
commit | 02c7c6cb335ed3c5e3904c0676cc5ea04336a8c0 (patch) | |
tree | 5b6a66ac43f728b6dce8ef27f1518b1dd633696c /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 1a7478451763d2af500cd3b2b8c10debae73cbe3 (diff) | |
download | bcm5719-llvm-02c7c6cb335ed3c5e3904c0676cc5ea04336a8c0.tar.gz bcm5719-llvm-02c7c6cb335ed3c5e3904c0676cc5ea04336a8c0.zip |
Include a frame index in the "fixed stack" pseudo source value
instead of using the frame index for the SVOffset, which was
inconsistent.
llvm-svn: 53486
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index db315380865..cc1acf47db7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -4361,8 +4361,8 @@ MachineMemOperand MemSDNode::getMemOperand() const { const FrameIndexSDNode *FI = dyn_cast<const FrameIndexSDNode>(getBasePtr().Val); if (!getSrcValue() && FI) - return MachineMemOperand(PseudoSourceValue::getFixedStack(), Flags, - FI->getIndex(), Size, getAlignment()); + return MachineMemOperand(PseudoSourceValue::getFixedStack(FI->getIndex()), + Flags, 0, Size, getAlignment()); else return MachineMemOperand(getSrcValue(), Flags, getSrcValueOffset(), Size, getAlignment()); |