aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-30 23:05:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-30 23:05:25 +0000
commita89195700264a5566a065bef240f92d9d3d2ed48 (patch)
treeed6afe0d5ae9d92188ca7ab46ac9546cce68ca32 /llvm/lib/Linker/LinkModules.cpp
parent2fd89da90d90e3aecab47b2705ad5dac436f88f1 (diff)
downloadllvm-a89195700264a5566a065bef240f92d9d3d2ed48.zip
llvm-a89195700264a5566a065bef240f92d9d3d2ed48.tar.gz
llvm-a89195700264a5566a065bef240f92d9d3d2ed48.tar.bz2
Disable a consistency check.
Trying to figure out why it fails on a bot but passes locally. llvm-svn: 254344
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index aeaa7eb..edee55a 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -940,12 +940,8 @@ void ModuleLinker::materializeInitFor(GlobalValue *New, GlobalValue *Old) {
if (isPerformingImport() && !doImportAsDefinition(Old))
return;
- if (DoNotLinkFromSource.count(Old)) {
- if (!New->hasExternalLinkage() && !New->hasExternalWeakLinkage() &&
- !New->hasAppendingLinkage())
- emitError("Declaration points to discarded value");
+ if (DoNotLinkFromSource.count(Old))
return;
- }
linkGlobalValueBody(*Old);
}