Skip to content

Commit

Permalink
Revert "[RemoveDIs] Add additional debug-mode verifier checks" (#84757)
Browse files Browse the repository at this point in the history
  • Loading branch information
OCHyams committed Mar 11, 2024
1 parent 2a38551 commit 2f1873d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions llvm/lib/IR/Verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2691,11 +2691,6 @@ void Verifier::visitFunction(const Function &F) {
Check(verifyAttributeCount(Attrs, FT->getNumParams()),
"Attribute after last parameter!", &F);

CheckDI(F.IsNewDbgInfoFormat == F.getParent()->IsNewDbgInfoFormat,
"Function debug format should match parent module", &F,
F.IsNewDbgInfoFormat, F.getParent(),
F.getParent()->IsNewDbgInfoFormat);

bool IsIntrinsic = F.isIntrinsic();

// Check function attributes.
Expand Down Expand Up @@ -3039,11 +3034,6 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
Check(I.getParent() == &BB, "Instruction has bogus parent pointer!");
}

CheckDI(BB.IsNewDbgInfoFormat == BB.getParent()->IsNewDbgInfoFormat,
"BB debug format should match parent function", &BB,
BB.IsNewDbgInfoFormat, BB.getParent(),
BB.getParent()->IsNewDbgInfoFormat);

// Confirm that no issues arise from the debug program.
if (BB.IsNewDbgInfoFormat)
CheckDI(!BB.getTrailingDPValues(), "Basic Block has trailing DbgRecords!",
Expand Down

0 comments on commit 2f1873d

Please sign in to comment.