Make the setInst method take its MCInst parameter by reference, a la Jim's
[oota-llvm.git] / include / llvm / MC / MCAssembler.h
index 6965e34998ade09da9626be354566b8e5f8cb5bd..d2b5c80a1a5a22c752e18748151adb5983cd0ab0 100644 (file)
@@ -191,7 +191,7 @@ public:
   MCInst &getInst() { return Inst; }
   const MCInst &getInst() const { return Inst; }
 
-  void setInst(MCInst Value) { Inst = Value; }
+  void setInst(const MCInst& Value) { Inst = Value; }
 
   /// @}
   /// @name Fixup Access