MCInstFragment constructor should take by-reference MCInst.

The MCInst is immediately passed to the copy-constructor for local
storage, so there's no need for the parameter itself to be by-value.

llvm-svn: 162404
This commit is contained in:
Jim Grosbach 2012-08-22 22:19:40 +00:00
parent dc5311aab6
commit c72632c9e9
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public:
typedef SmallVectorImpl<MCFixup>::iterator fixup_iterator;
public:
MCInstFragment(MCInst _Inst, MCSectionData *SD = 0)
MCInstFragment(const MCInst &_Inst, MCSectionData *SD = 0)
: MCFragment(FT_Inst, SD), Inst(_Inst) {
}