Split from D91844.
The local variable Unit in function DWARFLinker::loadClangModule in file llvm/lib/DWARFLinker/DWARFLinker.cpp. If the variable is not set in the loop below its definition, it will trigger a null pointer dereference after the loop.
Differential D97185
[llvm] Add assertions for the smart pointers with the possibility to be null in DWARFLinker::loadClangModule Authored by OikawaKirie on Feb 22 2021, 12:52 AM.
Details Split from D91844. The local variable Unit in function DWARFLinker::loadClangModule in file llvm/lib/DWARFLinker/DWARFLinker.cpp. If the variable is not set in the loop below its definition, it will trigger a null pointer dereference after the loop.
Diff Detail
Unit Tests Event TimelineComment Actions If the revision is done, please commit it on my behalf. Thank you. Ella Ma <alansnape3058@gmail.com> |