diff options
Diffstat (limited to 'support/lib/Support')
-rw-r--r-- | support/lib/Support/Debug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/support/lib/Support/Debug.cpp b/support/lib/Support/Debug.cpp index 57ed27a5b9..f87cddfe4e 100644 --- a/support/lib/Support/Debug.cpp +++ b/support/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 } |