diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
| commit | d93e1dfac8711cfed1a9d9cd1876a788b83945cd (patch) | |
| tree | 5896fa6c02a262a6148b215487e545d937de58b7 /COFF/MarkLive.cpp | |
| parent | 8d43286d630f9224de07809ea253e83ebb9cdee6 (diff) | |
Vendor import of lld trunk r290819:vendor/lld/lld-trunk-r290819
Notes
svn path=/vendor/lld/dist/; revision=311125
svn path=/vendor/lld/lld-trunk-r290819/; revision=311126; tag=vendor/lld/lld-trunk-r290819
Diffstat (limited to 'COFF/MarkLive.cpp')
| -rw-r--r-- | COFF/MarkLive.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/COFF/MarkLive.cpp b/COFF/MarkLive.cpp index 0870986ad81a..0156d238b672 100644 --- a/COFF/MarkLive.cpp +++ b/COFF/MarkLive.cpp @@ -38,8 +38,8 @@ void markLive(const std::vector<Chunk *> &Chunks) { }; // Add GC root chunks. - for (Undefined *U : Config->GCRoot) - if (auto *D = dyn_cast<DefinedRegular>(U->repl())) + for (SymbolBody *B : Config->GCRoot) + if (auto *D = dyn_cast<DefinedRegular>(B)) Enqueue(D->getChunk()); while (!Worklist.empty()) { @@ -48,7 +48,7 @@ void markLive(const std::vector<Chunk *> &Chunks) { // Mark all symbols listed in the relocation table for this section. for (SymbolBody *S : SC->symbols()) - if (auto *D = dyn_cast<DefinedRegular>(S->repl())) + if (auto *D = dyn_cast<DefinedRegular>(S)) Enqueue(D->getChunk()); // Mark associative sections if any. |
