[llvm] Revert "[RemoveDIs] Add additional debug-mode verifier checks" (PR #84757)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 06:09:54 PDT 2024
https://github.com/OCHyams created https://github.com/llvm/llvm-project/pull/84757
Reverts llvm/llvm-project#84308
Failing bots, e.g. https://lab.llvm.org/buildbot/#/builders/16/builds/62432
>From 2e66a2ac2edcfb0fa6059f6bed090c16f10be5c0 Mon Sep 17 00:00:00 2001
From: Orlando Cazalet-Hyams <orlandoch.och at gmail.com>
Date: Mon, 11 Mar 2024 13:09:18 +0000
Subject: [PATCH] Revert "[RemoveDIs] Add additional debug-mode verifier checks
(#84308)"
This reverts commit a84eb244129f288d609307ad42ab5e6c8e1cc795.
---
llvm/lib/IR/Verifier.cpp | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 0e6c01802cfb8c..ce090c3b8a7444 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -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.
@@ -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!",
More information about the llvm-commits
mailing list