[all-commits] [llvm/llvm-project] 2e02d2: [mlir] Change ABI breaking use of NDEBUG to LLVM_E...

zero9178 via All-commits all-commits at lists.llvm.org
Wed Nov 3 11:03:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e02d2a62f3a86c105ea84323b38941c03ce37da
      https://github.com/llvm/llvm-project/commit/2e02d2a62f3a86c105ea84323b38941c03ce37da
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-11-03 (Wed, 03 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Support/DebugAction.h

  Log Message:
  -----------
  [mlir] Change ABI breaking use of NDEBUG to LLVM_ENABLE_ABI_BREAKING_CHECKS in DebugActions.h

A quick grep for NDEBUG in MLIR revealed a use in DebugActions.h that breaks ABI. This patch changes the use of NDEBUG to LLVM_ENABLE_ABI_BREAKING_CHECKS which has the advantage of being independent of whether clients build their own app in debug or release as it is purely dependant on how MLIR itself was built.

Differential Revision: https://reviews.llvm.org/D113088




More information about the All-commits mailing list