summaryrefslogtreecommitdiff
path: root/lib/Support/Debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Debug.cpp')
-rw-r--r--lib/Support/Debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp
index 57ed27a5b9..f87cddfe4e 100644
--- a/lib/Support/Debug.cpp
+++ b/lib/Support/Debug.cpp
@@ -49,5 +49,9 @@ namespace {
// with the -debug-only=X option.
//
bool isCurrentDebugType(const char *DebugType) {
+#ifndef NDEBUG
return CurrentDebugType.empty() || DebugType == CurrentDebugType;
+#else
+ return false;
+#endif
}