[PATCH] D33264: Garbage collect dllimported symbols.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 17:50:21 PDT 2017


ruiu added inline comments.


================
Comment at: lld/COFF/MarkLive.cpp:41
+  // Mark a given symbol as reachable.
+  std::function<void(SymbolBody * B)> AddSym = [&](SymbolBody *B) {
+    if (auto *Sym = dyn_cast<DefinedRegular>(B)) {
----------------
pcc wrote:
> This could just use auto.
It doesn't compile, as this is a recursive function.


Repository:
  rL LLVM

https://reviews.llvm.org/D33264





More information about the llvm-commits mailing list