[llvm] [RemoveDIs] Add additional debug-mode verifier checks (PR #84308)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 03:40:02 PDT 2024
================
@@ -2674,6 +2674,11 @@ void Verifier::visitFunction(const Function &F) {
Check(verifyAttributeCount(Attrs, FT->getNumParams()),
"Attribute after last parameter!", &F);
+ Check(F.IsNewDbgInfoFormat == F.getParent()->IsNewDbgInfoFormat,
+ "Fn debug format should match parent", &F,
----------------
CarlosAlbertoEnciso wrote:
May be instead of `"Fn ..."` use `"F ..."` or `"Function ..."`.
https://github.com/llvm/llvm-project/pull/84308
More information about the llvm-commits
mailing list