[PATCH] D38998: [ELF] - Dedupliсate FDEs when sections are ICFed.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 08:31:02 PDT 2017


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: ELF/SyntheticSections.cpp:456
+    if (auto *Sec = cast_or_null<InputSectionBase>(D->Section))
+      return Sec && Sec->Live && (Sec == Sec->Repl);
   return false;
----------------
You can remove `Sec &&`.


https://reviews.llvm.org/D38998





More information about the llvm-commits mailing list