aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-08-22 22:19:40 +0000
committerJim Grosbach <grosbach@apple.com>2012-08-22 22:19:40 +0000
commit6c6237f8dce6787e550a3e243e22a085a2859fe8 (patch)
tree11dd18f286f9598e0b9456a1c4af0450fbc59b15
parentde659470dd036182fed5d87ec7a9c8d8e2bf996e (diff)
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
-rw-r--r--include/llvm/MC/MCAssembler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index b7b2d663f4..6965e34998 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -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) {
}