Skip to content

Commit 0dec52b

Browse files
authored
Fix NDEBUG Wundef warning; NFC (llvm#170153)
The `NDEBUG` macro is tested for defined-ness everywhere else. The instance here triggers a warning when compiling with `-Wundef`.
1 parent b17e644 commit 0dec52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/TokenKinds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ inline bool isLiteral(TokenKind K) {
9898
const bool isInLiteralRange =
9999
K >= tok::numeric_constant && K <= tok::utf32_string_literal;
100100

101-
#if !NDEBUG
101+
#ifndef NDEBUG
102102
const bool isLiteralExplicit =
103103
K == tok::numeric_constant || K == tok::char_constant ||
104104
K == tok::wide_char_constant || K == tok::utf8_char_constant ||

0 commit comments

Comments
 (0)