diff options
Diffstat (limited to 'llvm/lib/MC/MCSPIRVStreamer.cpp')
| -rw-r--r-- | llvm/lib/MC/MCSPIRVStreamer.cpp | 2 |
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, |
