Browse Source

Fix Wundef NDEBUG warning; NFC

Check for definedness of the NDEBUG macro rather than its value,
to be consistent with other uses.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342876 91177308-0d34-0410-b5e6-96231b3b80d8
Sven van Haastregt 7 năm trước cách đây
mục cha
commit
0823fab785
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Sema/ParsedAttr.cpp

+ 1 - 1
lib/Sema/ParsedAttr.cpp

@@ -82,7 +82,7 @@ void AttributeFactory::deallocate(ParsedAttr *Attr) {
   if (freeListIndex >= FreeLists.size())
   if (freeListIndex >= FreeLists.size())
     FreeLists.resize(freeListIndex + 1);
     FreeLists.resize(freeListIndex + 1);
 
 
-#if !NDEBUG
+#ifndef NDEBUG
   // In debug mode, zero out the attribute to help find memory overwriting.
   // In debug mode, zero out the attribute to help find memory overwriting.
   memset(Attr, 0, size);
   memset(Attr, 0, size);
 #endif
 #endif