[all-commits] [llvm/llvm-project] cd5f32: ADT::GenericCycleInfo: Hide validateTree() in -Ass...

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Sun May 22 09:15:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd5f3241c3866da0ba7ede4b96d1a110108214dd
      https://github.com/llvm/llvm-project/commit/cd5f3241c3866da0ba7ede4b96d1a110108214dd
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M llvm/include/llvm/ADT/GenericCycleImpl.h
    M llvm/include/llvm/ADT/GenericCycleInfo.h

  Log Message:
  -----------
  ADT::GenericCycleInfo: Hide validateTree() in -Asserts.

validateTree() is instantiated with __FILE__.
It will be pruned at link time due to -ffunction-sections but be left in
object files.
Its user is only GenericCycleInfo::compute() with assert(validateTree());
Therefore I think validateTree() may be hidden with NDEBUG.

This is a fixup for https://reviews.llvm.org/D112696




More information about the All-commits mailing list