diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index 9fe6823cb7..ef22eaaaa4 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -191,10 +191,8 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst) { void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) { MCInstFragment *IF = new MCInstFragment(Inst, getCurrentSectionData()); - SmallString<128> Code; - raw_svector_ostream VecOS(Code); + raw_svector_ostream VecOS(IF->getCode()); getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, IF->getFixups()); - IF->getCode().append(Code.begin(), Code.end()); } static const MCExpr *BuildSymbolDiff(MCContext &Context, |