aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index e053747..1407bc5 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -444,11 +444,6 @@ 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);