From: Sven van Haastregt Date: Mon, 24 Sep 2018 12:12:03 +0000 (+0000) Subject: Fix Wundef NDEBUG warning; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0823fab7852d16ebdbcfe2ac40a8285b2bcea507;p=clang 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 --- diff --git a/lib/Sema/ParsedAttr.cpp b/lib/Sema/ParsedAttr.cpp index b8d57e2272..3dff0ad63e 100644 --- a/lib/Sema/ParsedAttr.cpp +++ b/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