diff options
Diffstat (limited to 'llvm/tools/llvm-objcopy/COFF/Object.cpp')
-rw-r--r-- | llvm/tools/llvm-objcopy/COFF/Object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objcopy/COFF/Object.cpp b/llvm/tools/llvm-objcopy/COFF/Object.cpp index 8c382c1faef..83435dffa98 100644 --- a/llvm/tools/llvm-objcopy/COFF/Object.cpp +++ b/llvm/tools/llvm-objcopy/COFF/Object.cpp @@ -129,7 +129,7 @@ void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) { for (Section &Sec : Sections) { if (ToTruncate(Sec)) { - Sec.clearContents(); + Sec.Contents = ArrayRef<uint8_t>(); Sec.Relocs.clear(); Sec.Header.SizeOfRawData = 0; } |