From: Sven van Haastregt Date: Mon, 24 Sep 2018 12:12:03 +0000 (+0000) Subject: Fix Wundef NDEBUG warning; NFC X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b39a085d93f9b8d042c0e2aa8733d763efa94f0;p=platform%2Fupstream%2Fllvm.git Fix Wundef NDEBUG warning; NFC Check for definedness of the NDEBUG macro rather than its value, to be consistent with other uses. llvm-svn: 342876 --- diff --git a/clang/lib/Sema/ParsedAttr.cpp b/clang/lib/Sema/ParsedAttr.cpp index b8d57e2..3dff0ad6 100644 --- a/clang/lib/Sema/ParsedAttr.cpp +++ b/clang/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