瀏覽代碼

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 年之前
父節點
當前提交
0823fab785
共有 1 個文件被更改,包括 1 次插入1 次删除
  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())
     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