Skip to content

Commit 6716ce8

Browse files
committed
Revert "Verifier: Add check for DICompositeType elements being null"
Asserts on various tests/buildbots, at least one example is DebugInfo/X86/set.ll This reverts commit 2dc5682.
1 parent 58a70df commit 6716ce8

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,8 +1319,6 @@ void Verifier::visitDICompositeType(const DICompositeType &N) {
13191319
unsigned DIBlockByRefStruct = 1 << 4;
13201320
CheckDI((N.getFlags() & DIBlockByRefStruct) == 0,
13211321
"DIBlockByRefStruct on DICompositeType is no longer supported", &N);
1322-
CheckDI(llvm::all_of(N.getElements(), [](const DINode *N) { return N; }),
1323-
"DISubprogram contains null entry in `elements` field", &N);
13241322

13251323
if (N.isVector()) {
13261324
const DINodeArray Elements = N.getElements();

llvm/test/Verifier/dicompositetype-elements-null.ll

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)