diff options
author | Greg Clayton <gclayton@fb.com> | 2024-06-11 13:58:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 13:58:26 -0700 |
commit | a118f5f398bf099ec76ebf889234ebbc58b28f0c (patch) | |
tree | c23ef30a629a2ab4ace6b6e77003b5870c314788 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | cce1feb7b1caf6bd5fab311a787481a3f6a9dcdf (diff) | |
download | llvm-a118f5f398bf099ec76ebf889234ebbc58b28f0c.zip llvm-a118f5f398bf099ec76ebf889234ebbc58b28f0c.tar.gz llvm-a118f5f398bf099ec76ebf889234ebbc58b28f0c.tar.bz2 |
Fix type lookup bug where wrong decl context was being used for a DIE. (#94846)
The function that calculated the declaration context for a DIE was incorrectly transparently traversing acrosss DW_TAG_subprogram dies when climbing the parent DIE chain. This meant that types defined in functions would appear to have the declaration context of anything above the function. I fixed the GetTypeLookupContextImpl(...) function in DWARFDIE.cpp to not transparently skip over functions, lexical blocks and inlined functions and compile and type units. Added a test to verify things are working.
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions