summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2018-09-24 12:12:03 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2018-09-24 12:12:03 +0000
commit7b39a085d93f9b8d042c0e2aa8733d763efa94f0 (patch)
tree04790020d9486fb2058dcba8a21a58a97b3027d3
parent27104981ad4a94b433e227c9af0c4a8cfad58261 (diff)
downloadbcm5719-llvm-7b39a085d93f9b8d042c0e2aa8733d763efa94f0.tar.gz
bcm5719-llvm-7b39a085d93f9b8d042c0e2aa8733d763efa94f0.zip
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
-rw-r--r--clang/lib/Sema/ParsedAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/ParsedAttr.cpp b/clang/lib/Sema/ParsedAttr.cpp
index b8d57e2272e..3dff0ad63e2 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
OpenPOWER on IntegriCloud