]> granicus.if.org Git - clang/commitdiff
Guard private fields that are unused in Release builds with #ifndef NDEBUG.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Jun 2012 21:48:23 +0000 (21:48 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Jun 2012 21:48:23 +0000 (21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158609 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/ASTUnit.h

index 041eabb5b9923891ff285af4fde153713cfe3300..c22a18bd1c036746e928b52640b14fff4d593b3e 100644 (file)
@@ -396,7 +396,9 @@ private:
   /// 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();