aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-11 18:56:50 +0000
committerDan Gohman <gohman@apple.com>2008-02-11 18:56:50 +0000
commitf8df0ff9a5d1be41ca237bcd40ced821839b32fa (patch)
treed562e2e23377da968c049f831bee8d9f8096fb53
parenta089b104218c46803a1af374f6c441df885e54c2 (diff)
From Chris' review: change MemOperandSDNode's constructor to pass its
argument by reference, rather than by value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46960 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 43d22a402c..4117552b52 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1425,7 +1425,7 @@ class MemOperandSDNode : public SDNode {
protected:
friend class SelectionDAG;
/// Create a MemOperand node
- explicit MemOperandSDNode(MemOperand mo)
+ explicit MemOperandSDNode(const MemOperand &mo)
: SDNode(ISD::MEMOPERAND, getSDVTList(MVT::Other)), MO(mo) {}
public: