This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][DWARF] Add a nullptr check for DW_AT_call_site to ensure Function will not be empty
Needs ReviewPublic

Authored by zr33 on Jul 25 2022, 5:25 PM.

Details

Summary

The Function pointer might be NULL and the update process will crash, add a nullptr check to avoid it.

Diff Detail

Event Timeline

zr33 created this revision.Jul 25 2022, 5:25 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
zr33 requested review of this revision.Jul 25 2022, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2022, 5:25 PM
zr33 retitled this revision from add a nullptr check for DW_AT_call_site to ensure Function will not be empty to [BOLT][DWARF] Add a nullptr check for DW_AT_call_site to ensure Function will not be empty.Jul 25 2022, 5:26 PM
zr33 edited the summary of this revision. (Show Details)
zr33 added a reviewer: ayermolo.
zr33 updated this revision to Diff 447527.Jul 25 2022, 5:29 PM

git-clang-format