@@ -2691,11 +2691,6 @@ void Verifier::visitFunction(const Function &F) {
2691
2691
Check (verifyAttributeCount (Attrs, FT->getNumParams ()),
2692
2692
" Attribute after last parameter!" , &F);
2693
2693
2694
- CheckDI (F.IsNewDbgInfoFormat == F.getParent ()->IsNewDbgInfoFormat ,
2695
- " Function debug format should match parent module" , &F,
2696
- F.IsNewDbgInfoFormat , F.getParent (),
2697
- F.getParent ()->IsNewDbgInfoFormat );
2698
-
2699
2694
bool IsIntrinsic = F.isIntrinsic ();
2700
2695
2701
2696
// Check function attributes.
@@ -3039,11 +3034,6 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
3039
3034
Check (I.getParent () == &BB, " Instruction has bogus parent pointer!" );
3040
3035
}
3041
3036
3042
- CheckDI (BB.IsNewDbgInfoFormat == BB.getParent ()->IsNewDbgInfoFormat ,
3043
- " BB debug format should match parent function" , &BB,
3044
- BB.IsNewDbgInfoFormat , BB.getParent (),
3045
- BB.getParent ()->IsNewDbgInfoFormat );
3046
-
3047
3037
// Confirm that no issues arise from the debug program.
3048
3038
if (BB.IsNewDbgInfoFormat )
3049
3039
CheckDI (!BB.getTrailingDPValues (), " Basic Block has trailing DbgRecords!" ,
0 commit comments