From 7b39a085d93f9b8d042c0e2aa8733d763efa94f0 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Mon, 24 Sep 2018 12:12:03 +0000 Subject: [PATCH] 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 --- clang/lib/Sema/ParsedAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4