[llvm] [RemoveDIs] Read/write DbgRecords directly from/to bitcode (PR #83251)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 10:10:28 PST 2024
================
@@ -2975,6 +2975,17 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
Check(I.getParent() == &BB, "Instruction has bogus parent pointer!");
}
+ Check(BB.IsNewDbgInfoFormat == BB.getParent()->IsNewDbgInfoFormat,
+ "BB debug format (new=" + std::to_string(BB.IsNewDbgInfoFormat) +
+ ") should match parent " + BB.getName() + " in " +
+ BB.getParent()->getName());
+ Check(BB.getParent()->IsNewDbgInfoFormat ==
+ BB.getParent()->getParent()->IsNewDbgInfoFormat,
+ "Fn debug format (new=" +
+ std::to_string(BB.getParent()->IsNewDbgInfoFormat) +
+ ") should match parent " + BB.getParent()->getName() + " in " +
+ BB.getParent()->getParent()->getName());
----------------
jmorse wrote:
More appropriate in the Function visitor than the block?
https://github.com/llvm/llvm-project/pull/83251
More information about the llvm-commits
mailing list