[all-commits] [llvm/llvm-project] 23743f: [readobj][ELFExtendedAttrParser] Add destructor wi...

SivanShani-Arm via All-commits all-commits at lists.llvm.org
Tue Mar 18 05:29:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23743f5bf974ed1171fd8123f8d2af0f43be3596
      https://github.com/llvm/llvm-project/commit/23743f5bf974ed1171fd8123f8d2af0f43be3596
  Author: SivanShani-Arm <sivan.shani at arm.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M llvm/include/llvm/Support/ELFAttrParserExtended.h
    A llvm/test/MC/AArch64/build-attributes-asm-arch-specific-empty.s
    A llvm/test/MC/AArch64/build-attributes-asm-arch-specific.s

  Log Message:
  -----------
  [readobj][ELFExtendedAttrParser] Add destructor with error handling (#131783)

ELFExtendedAttrParser lacked a destructor that properly handled errors,
causing `llvm-readobj --arch-specific` to crash when the AArch64 Build
Attributes section was empty.

This commit adds error handling in the destructor and introduces test
files for `--arch-specific` to cover both an empty AArch64 Build
Attributes section and a populated one.

Fixes:

https://github.com/sivan-shani/llvm-project/commit/b1ebfac1859c4fd1db3620098f6af4fd98e6174d



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list