diff options
Diffstat (limited to 'dex2oat/dex2oat.cc')
-rw-r--r-- | dex2oat/dex2oat.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index 8d0d89ed5c..9c15c4a194 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -2043,7 +2043,8 @@ class Dex2Oat FINAL { // We need to mirror the layout of the ELF file in the compressed debug-info. // Therefore PrepareDebugInfo() relies on the SetLoadedSectionSizes() call further above. - elf_writer->PrepareDebugInfo(oat_writer->GetMethodDebugInfo()); + debug::DebugInfo debug_info = oat_writer->GetDebugInfo(); // Keep the variable alive. + elf_writer->PrepareDebugInfo(debug_info); // Processes the data on background thread. linker::OutputStream*& rodata = rodata_[i]; DCHECK(rodata != nullptr); @@ -2077,7 +2078,7 @@ class Dex2Oat FINAL { } elf_writer->WriteDynamicSection(); - elf_writer->WriteDebugInfo(oat_writer->GetMethodDebugInfo()); + elf_writer->WriteDebugInfo(oat_writer->GetDebugInfo()); if (!elf_writer->End()) { LOG(ERROR) << "Failed to write ELF file " << oat_file->GetPath(); |