diff options
author | Davide Italiano <davide@freebsd.org> | 2016-04-06 04:34:38 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-04-06 04:34:38 +0000 |
commit | 22680e1c5c2f7153bb2678224da46e24a1e10bcc (patch) | |
tree | f1b80cd4e613c515f99593420f562b4eab100c85 /llvm/lib/IR/Verifier.cpp | |
parent | f35d4b09287e7ad97b9b6ab0ab418092cbba1581 (diff) | |
download | bcm5719-llvm-22680e1c5c2f7153bb2678224da46e24a1e10bcc.tar.gz bcm5719-llvm-22680e1c5c2f7153bb2678224da46e24a1e10bcc.zip |
Revert "[IRVerifier] Don't crash on invalid DIFile inside DISubprogram."
This reverts commit r265515 as lots of tests need to be fixed before
this actually can go in.
llvm-svn: 265517
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index ca441922957..fe3d6eb6cf4 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -988,8 +988,6 @@ void Verifier::visitDICompileUnit(const DICompileUnit &N) { void Verifier::visitDISubprogram(const DISubprogram &N) { Assert(N.getTag() == dwarf::DW_TAG_subprogram, "invalid tag", &N); Assert(isScopeRef(N, N.getRawScope()), "invalid scope", &N, N.getRawScope()); - Assert(N.getRawFile() && isa<DIFile>(N.getRawFile()), "invalid file", &N, - N.getRawFile()); if (auto *T = N.getRawType()) Assert(isa<DISubroutineType>(T), "invalid subroutine type", &N, T); Assert(isTypeRef(N, N.getRawContainingType()), "invalid containing type", &N, |