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
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 43d22a4..4117552 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1425,7 +1425,7 @@
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: