[all-commits] [llvm/llvm-project] 3f417a: [NFC] [Coverage] Do not use recursion for getMaxCo...

shen3qing1 via All-commits all-commits at lists.llvm.org
Mon Oct 2 13:40:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f417a7096ce2a4e886c020329eb68df01ce3389
      https://github.com/llvm/llvm-project/commit/3f417a7096ce2a4e886c020329eb68df01ce3389
  Author: shen3qing1 <145069838+shen3qing1 at users.noreply.github.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

  Log Message:
  -----------
  [NFC] [Coverage] Do not use recursion for getMaxCounterID (#67870)

This causes stack overflows for real-world coverage reports.

Tested with build/bin/llvm-lit -a llvm/test/tools/llvm-cov

Co-authored-by: Qing Shen <qingshen at google.com>




More information about the All-commits mailing list