diff options
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index bb59400de47..9c3f1834801 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -1533,8 +1533,7 @@ bool ModuleLinker::run() { LazilyLinkGlobalValues.pop_back(); if (auto F = dyn_cast<Function>(SGV)) - if (F->isDeclaration()) - continue; + assert(!F->isDeclaration() && "users should not pass down decls"); if (linkGlobalValueBody(*SGV)) return true; } |