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.

llvm-svn: 224277
This commit is contained in:
Michael Ilseman 2014-12-15 21:36:29 +00:00
parent 4a7fddca0d
commit 1c38396db7
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}