summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2014-12-15 21:36:29 +0000
committerMichael Ilseman <milseman@apple.com>2014-12-15 21:36:29 +0000
commit1c38396db7dd59340fbbeb59925b3448489c3f8d (patch)
tree00298c8b3b88e9b8a2e57082d5e2dec7859488be /llvm/lib/Linker/LinkModules.cpp
parent4a7fddca0d8778849f2a3e93b4a4e930fc590ee6 (diff)
downloadbcm5719-llvm-1c38396db7dd59340fbbeb59925b3448489c3f8d.tar.gz
bcm5719-llvm-1c38396db7dd59340fbbeb59925b3448489c3f8d.zip
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
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp3
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;
}
OpenPOWER on IntegriCloud