mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
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
This commit is contained in:
parent
b10837d169
commit
9f0d59ab46
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user