[PATCH] D90873: [DWARFLinker] Convert analyzeContextInfo to a work list (NFC)

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 12:02:01 PST 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: friss, adrian, avl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
JDevlieghere requested review of this revision.

Convert `analyzeContextInfo` to a work list using the same approach I used to remove the recursion from `lookForDIEsToKeep`. This fixes the crash reported in https://llvm.org/PR48029.

Tested using the reproducer attached to PR48029 as well as by comparing the clang MD5 hashes before and after the change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90873

Files:
  llvm/lib/DWARFLinker/DWARFLinker.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90873.303221.patch
Type: text/x-patch
Size: 9087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201105/47071e67/attachment.bin>


More information about the llvm-commits mailing list