From 9f0d59ab463f3aa5d92ce9eecde2b797bb5e0200 Mon Sep 17 00:00:00 2001 From: Michael Ilseman Date: Mon, 15 Dec 2014 21:36:29 +0000 Subject: [PATCH] Revert of r223763, in spirit. r223763 was made to work around a temporary issue where a user of the JIT was passing down a declaration (incorrectly). This shouldn't occur, so assert rather than silently continue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224277 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index bb59400de47..9c3f1834801 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -1533,8 +1533,7 @@ bool ModuleLinker::run() { LazilyLinkGlobalValues.pop_back(); if (auto F = dyn_cast(SGV)) - if (F->isDeclaration()) - continue; + assert(!F->isDeclaration() && "users should not pass down decls"); if (linkGlobalValueBody(*SGV)) return true; } -- 2.34.1