Author: d0k
Date: Sat Jun 16 16:48:23 2012
New Revision: 158609
URL: http://llvm.org/viewvc/llvm-project?rev=158609&view=rev
Log:
Guard private fields that are unused in Release builds with #ifndef NDEBUG.
Modified:
cfe/trunk/include/clang/Frontend/ASTUnit.h
Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=158609&r1=158608&r2=158609&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
+++ cfe/trunk/include/clang/Frontend/ASTUnit.h Sat Jun 16 16:48:23 2012
@@ -396,7 +396,9 @@
/// just about any usage.
/// Becomes a noop in release mode; only useful for debug mode checking.
class ConcurrencyState {
+#ifndef NDEBUG
void *Mutex; // a llvm::sys::MutexImpl in debug;
+#endif
public:
ConcurrencyState();
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits