summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b10837d)
raw | patch | inline | side by side (parent: b10837d)
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224277 91177308-0d34-0410-b5e6-96231b3b80d8
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 | patch | blob | history |
index bb59400de47cbb8bc8c76077dbe500ac8b64817d..9c3f18348010127d4a1629b8e56d2a79b1265720 100644 (file)
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;
}