projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a7fddc
)
Revert of r223763, in spirit.
author
Michael Ilseman
<milseman@apple.com>
Mon, 15 Dec 2014 21:36:29 +0000
(21:36 +0000)
committer
Michael Ilseman
<milseman@apple.com>
Mon, 15 Dec 2014 21:36:29 +0000
(21:36 +0000)
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
llvm/lib/Linker/LinkModules.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Linker/LinkModules.cpp
b/llvm/lib/Linker/LinkModules.cpp
index
bb59400
..
9c3f183
100644
(file)
--- 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;
}