[llvm] [DWARFVerifier] Verify that DW_AT_LLVM_stmt_sequence is set correctly (PR #152807)
Greg Clayton via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 13 16:39:30 PDT 2025
================
@@ -851,6 +851,52 @@ unsigned DWARFVerifier::verifyDebugInfoAttribute(const DWARFDie &Die,
}
break;
}
+ case DW_AT_LLVM_stmt_sequence: {
+ // Make sure the offset in the DW_AT_LLVM_stmt_sequence attribute is valid
+ // and points to a valid sequence start in the line table.
+ auto SectionOffset = AttrValue.Value.getAsSectionOffset();
+ if (!SectionOffset) {
----------------
clayborg wrote:
We should add a test for this case
https://github.com/llvm/llvm-project/pull/152807
More information about the llvm-commits
mailing list