summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-10-18 00:54:31 +0000
committerAdrian Prantl <aprantl@apple.com>2017-10-18 00:54:31 +0000
commitfe8226fd94b1e0652af798557337e72f7a16c5e3 (patch)
tree681284eab646ef4376684336a9f489fb04f98df2 /llvm/lib/IR
parentf9a1cf6dcc151d555a84e11ebdf415a0f36a7db7 (diff)
downloadbcm5719-llvm-fe8226fd94b1e0652af798557337e72f7a16c5e3.tar.gz
bcm5719-llvm-fe8226fd94b1e0652af798557337e72f7a16c5e3.zip
Revert "Verifier: Ignore CUs pulled in by ODR-uniqued types."
This reverts commit r316049. llvm-svn: 316050
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Verifier.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index ceaead99531..7c6e4585b9e 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -45,7 +45,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/IR/Verifier.h"
-#include "LLVMContextImpl.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
@@ -4594,11 +4593,6 @@ void Verifier::verifyFnArgs(const DbgInfoIntrinsic &I) {
}
void Verifier::verifyCompileUnits() {
- // When more than one Module is imported into the same context, such as during
- // an LTO build before linking the modules, ODR type uniquing may cause types
- // to point to a different CU. This check does not make sense in this case.
- if (M.getContext().pImpl->OwnedModules.size() > 1)
- return;
auto *CUs = M.getNamedMetadata("llvm.dbg.cu");
SmallPtrSet<const Metadata *, 2> Listed;
if (CUs)
OpenPOWER on IntegriCloud