diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2018-05-29 17:17:46 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2018-05-29 17:17:46 +0000 |
commit | 1bbff4520e6ed377489221fe0e5ef0da928dbab8 (patch) | |
tree | 4667f2470d88c668f0e9b545c476570359b6f100 /llvm/lib/IR/ProfileSummary.cpp | |
parent | e7ae0f48f48151647de037927db084c1c9a15587 (diff) | |
download | bcm5719-llvm-1bbff4520e6ed377489221fe0e5ef0da928dbab8.tar.gz bcm5719-llvm-1bbff4520e6ed377489221fe0e5ef0da928dbab8.zip |
Fix DWARFUnit::GetUnitDIEPtrOnly stale pointer
GetUnitDIEPtrOnly() needs to return pointer to the first DIE.
But the first element of m_die_array after ExtractDIEsIfNeeded(true)
may move in memory after later ExtractDIEsIfNeeded(false).
DWARFDebugInfoEntry::collection m_die_array is std::vector,
its data may move during its expansion.
Differential revision: https://reviews.llvm.org/D46810
llvm-svn: 333437
Diffstat (limited to 'llvm/lib/IR/ProfileSummary.cpp')
0 files changed, 0 insertions, 0 deletions