aboutsummaryrefslogtreecommitdiff
path: root/lib/clang/include/llvm/Config/abi-breaking.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/clang/include/llvm/Config/abi-breaking.h')
-rw-r--r--lib/clang/include/llvm/Config/abi-breaking.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/clang/include/llvm/Config/abi-breaking.h b/lib/clang/include/llvm/Config/abi-breaking.h
index eb90be1fe37b..55e67e2ebad7 100644
--- a/lib/clang/include/llvm/Config/abi-breaking.h
+++ b/lib/clang/include/llvm/Config/abi-breaking.h
@@ -13,7 +13,11 @@
#define LLVM_ABI_BREAKING_CHECKS_H
/* Define to enable checks that alter the LLVM C++ ABI */
+#ifdef NDEBUG
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
+#else
#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
+#endif
/* Define to enable reverse iteration of unordered llvm containers */
#define LLVM_ENABLE_REVERSE_ITERATION 0