[Mlir-commits] [mlir] 6da6357 - [mlir] fix Debug unittests
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 3 14:34:48 PDT 2021
Author: Mogball
Date: 2021-11-03T21:34:36Z
New Revision: 6da63573e48397decfb772884a36f176d6c81209
URL: https://github.com/llvm/llvm-project/commit/6da63573e48397decfb772884a36f176d6c81209
DIFF: https://github.com/llvm/llvm-project/commit/6da63573e48397decfb772884a36f176d6c81209.diff
LOG: [mlir] fix Debug unittests
Flag NDEBUG needed to be changed to LLVM_ENABLE_ABI_BREAKING_CHECKS
Added:
Modified:
mlir/unittests/Support/DebugActionTest.cpp
mlir/unittests/Support/DebugCounterTest.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/Support/DebugActionTest.cpp b/mlir/unittests/Support/DebugActionTest.cpp
index ba28b91a323d8..0a73436f572d7 100644
--- a/mlir/unittests/Support/DebugActionTest.cpp
+++ b/mlir/unittests/Support/DebugActionTest.cpp
@@ -10,7 +10,7 @@
#include "gmock/gmock.h"
// DebugActionManager is only enabled in DEBUG mode.
-#ifndef NDEBUG
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
using namespace mlir;
diff --git a/mlir/unittests/Support/DebugCounterTest.cpp b/mlir/unittests/Support/DebugCounterTest.cpp
index 09ba20f87165c..7ca48cdf35731 100644
--- a/mlir/unittests/Support/DebugCounterTest.cpp
+++ b/mlir/unittests/Support/DebugCounterTest.cpp
@@ -12,7 +12,7 @@
using namespace mlir;
// DebugActionManager is only enabled in DEBUG mode.
-#ifndef NDEBUG
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
namespace {
More information about the Mlir-commits
mailing list