Reenable optimized build
[oota-llvm.git] / lib / Support / Debug.cpp
index 57ed27a5b9554cbdd0fa53fc0d19b79db2f0246c..f87cddfe4e84a54c93fdbd94c34a0ead3498fc10 100644 (file)
@@ -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
 }