[all-commits] [llvm/llvm-project] b7459a: [DWARF] Fix crash for DWARFDie::dump.
Rafael Auler via All-commits
all-commits at lists.llvm.org
Wed Apr 14 18:47:12 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7459a10dad1cf71dc0e6dcb97256bfbe3c2a28d
https://github.com/llvm/llvm-project/commit/b7459a10dad1cf71dc0e6dcb97256bfbe3c2a28d
Author: Alexander Yermolovich <ayermolo at fb.com>
Date: 2021-04-14 (Wed, 14 Apr 2021)
Changed paths:
M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
M llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
M llvm/unittests/DebugInfo/DWARF/CMakeLists.txt
A llvm/unittests/DebugInfo/DWARF/DWARFDieManualExtractTest.cpp
Log Message:
-----------
[DWARF] Fix crash for DWARFDie::dump.
When DIE is extracted manually, the DieArray is empty. When dump is invoked on aforementioned DIE it tries to extract child, even if Dump options say otherwise. Resulting in crash.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D99698
More information about the All-commits
mailing list