diff options
| -rw-r--r-- | lld/lib/Driver/Driver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp index 54f1080e730..bffe6486f19 100644 --- a/lld/lib/Driver/Driver.cpp +++ b/lld/lib/Driver/Driver.cpp @@ -60,7 +60,11 @@ bool Driver::link(const LinkingContext &context, raw_ostream &diagnostics) { llvm::outs() << fileNode->errStr(error_code(linkerInput)) << "\n"; return true; } - linkerInputs.push_back(std::move(*fileNode->createLinkerInput(context))); + linkerInputs.push_back(std::move(*linkerInput)); + } + else { + llvm_unreachable("Not handling other types of InputElements"); + return true; } } for (const auto &input : linkerInputs) { |

