aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-07 18:41:25 +0000
committerDan Gohman <gohman@apple.com>2008-02-07 18:41:25 +0000
commit16d4bc3dc0bb78e57ea23e80457836f58abde34d (patch)
tree23fe089b4083a8580afbeb83f7ca673ca4ee3c74 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent0f166de892ac9b53c4dd27dcbadea236cc2fe899 (diff)
downloadllvm-16d4bc3dc0bb78e57ea23e80457836f58abde34d.zip
llvm-16d4bc3dc0bb78e57ea23e80457836f58abde34d.tar.gz
llvm-16d4bc3dc0bb78e57ea23e80457836f58abde34d.tar.bz2
Follow Chris' suggestion; change the PseudoSourceValue accessors
to return pointers instead of references, since this is always what is needed. llvm-svn: 46857
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 71c6b55..b58138e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3548,7 +3548,7 @@ MemOperand LSBaseSDNode::getMemOperand() const {
const FrameIndexSDNode *FI =
dyn_cast<const FrameIndexSDNode>(getBasePtr().Val);
if (!getSrcValue() && FI)
- return MemOperand(&PseudoSourceValue::getFixedStack(), Flags,
+ return MemOperand(PseudoSourceValue::getFixedStack(), Flags,
FI->getIndex(), Size, Alignment);
else
return MemOperand(getSrcValue(), Flags,