OSDN Git Service

Make the setInst method take its MCInst parameter by reference, a la Jim's
authorLang Hames <lhames@gmail.com>
Thu, 23 Aug 2012 07:00:48 +0000 (07:00 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 23 Aug 2012 07:00:48 +0000 (07:00 +0000)
change in r162404.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162431 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAssembler.h

index 6965e34..d2b5c80 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