diff options
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r-- | llvm/lib/MC/MCCodeView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index 1407bc5..e053747 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -444,6 +444,11 @@ MCFragment *CodeViewContext::emitDefRange( StringRef FixedSizePortion) { // Create and insert a fragment into the current section that will be encoded // later. + FixedSizePortion = MCCtx->allocateString(FixedSizePortion); + auto Pos = DefRangeStorage.size(); + llvm::append_range(DefRangeStorage, Ranges); + if (!Ranges.empty()) + Ranges = {&DefRangeStorage[Pos], Ranges.size()}; auto *F = MCCtx->allocFragment<MCCVDefRangeFragment>(Ranges, FixedSizePortion); OS.insert(F); |