[all-commits] [llvm/llvm-project] ef6d18: [ELF] Fix assertion in cdsort (#71708)

spupyrev via All-commits all-commits at lists.llvm.org
Wed Nov 8 12:34:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef6d187115a28c745108f2b26a5d5a62cedf9b3c
      https://github.com/llvm/llvm-project/commit/ef6d187115a28c745108f2b26a5d5a62cedf9b3c
  Author: spupyrev <spupyrev at users.noreply.github.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M lld/ELF/CallGraphSort.cpp
    M lld/test/ELF/cgprofile-txt2.s

  Log Message:
  -----------
  [ELF] Fix assertion in cdsort (#71708)

It seems that some functions (.text.unlikely.xxx) may have zero size,
which
makes some builds with enabled assertions fail. Removing the assertion
and
extending one test to fix the build.
The sorting can process such zero-sized functions so no changes there
are needed




More information about the All-commits mailing list