summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-02-20 22:51:42 +0000
committerDavide Italiano <davide@freebsd.org>2017-02-20 22:51:42 +0000
commita9de0109b3bc438bd1bb9f88b05b4229d4b253ff (patch)
treeef6fedae3406884f9fabffa00b5930a793203984 /llvm/lib/IR/Verifier.cpp
parent78cbd28102114115dde1d91dfe0d0a79341a642d (diff)
downloadbcm5719-llvm-a9de0109b3bc438bd1bb9f88b05b4229d4b253ff.tar.gz
bcm5719-llvm-a9de0109b3bc438bd1bb9f88b05b4229d4b253ff.zip
[IR/Verifier] List the CU we weren't able to find in `llvm.dbg.cu`.
llvm-svn: 295678
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index c14e2bbdee4..7d0bfd7270c 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -4421,10 +4421,8 @@ void Verifier::verifyCompileUnits() {
SmallPtrSet<const Metadata *, 2> Listed;
if (CUs)
Listed.insert(CUs->op_begin(), CUs->op_end());
- AssertDI(
- all_of(CUVisited,
- [&Listed](const Metadata *CU) { return Listed.count(CU); }),
- "All DICompileUnits must be listed in llvm.dbg.cu");
+ for (auto *CU : CUVisited)
+ AssertDI(Listed.count(CU), "DICompileUnit not listed in llvm.dbg.cu", CU);
CUVisited.clear();
}
OpenPOWER on IntegriCloud