[PATCH] D28626: RFC: Generalize inverted gc dependencies

Evgeniy Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 14:36:09 PST 2017


eugenis added inline comments.


================
Comment at: lld/ELF/MarkLive.cpp:241
+          cast<InputSection<ELFT>>(*Sec), [=](ResolvedReloc<ELFT> R) {
+            cast<InputSection<ELFT>>(R.Sec)->DependentSections.push_back(Sec);
+          });
----------------
This does not have to be an InputSection.
I see it crashing on .rodata.str1.1 which is a MergeInputSection.


https://reviews.llvm.org/D28626





More information about the llvm-commits mailing list