diff options
Diffstat (limited to 'lld/lib/Driver/GnuLdInputGraph.cpp')
| -rw-r--r-- | lld/lib/Driver/GnuLdInputGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/GnuLdInputGraph.cpp b/lld/lib/Driver/GnuLdInputGraph.cpp index a3c6543e125..febc737d1b5 100644 --- a/lld/lib/Driver/GnuLdInputGraph.cpp +++ b/lld/lib/Driver/GnuLdInputGraph.cpp @@ -32,7 +32,7 @@ error_code ELFFileNode::parse(const LinkingContext &ctx, return ec; assert(parsedFiles.size() == 1); std::unique_ptr<File> f(parsedFiles[0].release()); - if (auto archive = reinterpret_cast<const ArchiveLibraryFile *>(f.get())) { + if (const auto *archive = dyn_cast<ArchiveLibraryFile>(f.get())) { // Have this node own the FileArchive object. _archiveFile.reset(archive); f.release(); |

