mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user