Fix Wundef NDEBUG warning; NFC
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Mon, 24 Sep 2018 12:12:03 +0000 (12:12 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Mon, 24 Sep 2018 12:12:03 +0000 (12:12 +0000)
Check for definedness of the NDEBUG macro rather than its value,
to be consistent with other uses.

llvm-svn: 342876

clang/lib/Sema/ParsedAttr.cpp

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