summaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCSPIRVStreamer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCSPIRVStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCSPIRVStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSPIRVStreamer.cpp b/llvm/lib/MC/MCSPIRVStreamer.cpp
index 3b75a2e17a4a..3b8cbee70d20 100644
--- a/llvm/lib/MC/MCSPIRVStreamer.cpp
+++ b/llvm/lib/MC/MCSPIRVStreamer.cpp
@@ -28,7 +28,7 @@ void MCSPIRVStreamer::emitInstToData(const MCInst &Inst,
MCDataFragment *DF = getOrCreateDataFragment();
DF->setHasInstructions(STI);
- DF->getContents().append(Code.begin(), Code.end());
+ DF->appendContents(Code);
}
MCStreamer *llvm::createSPIRVStreamer(MCContext &Context,