[clang] 231992d - [clang] silence unused variable warning
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 03:23:20 PST 2022
Author: Krasimir Georgiev
Date: 2022-12-16T11:22:46Z
New Revision: 231992d9b88fe4e0b4aa0f55ed64d7ba88b231ce
URL: https://github.com/llvm/llvm-project/commit/231992d9b88fe4e0b4aa0f55ed64d7ba88b231ce
DIFF: https://github.com/llvm/llvm-project/commit/231992d9b88fe4e0b4aa0f55ed64d7ba88b231ce.diff
LOG: [clang] silence unused variable warning
No functional changes intended.
Added:
Modified:
clang/lib/Lex/Lexer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index d1af455fbb91..2f21f7b069cf 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -1548,6 +1548,8 @@ static void diagnoseExtensionInIdentifier(DiagnosticsEngine &Diags, uint32_t C,
static const llvm::sys::UnicodeCharSet MathContinueChars(
MathematicalNotationProfileIDContinueRanges);
+ (void)MathStartChars;
+ (void)MathContinueChars;
assert((MathStartChars.contains(C) || MathContinueChars.contains(C)) &&
"Unexpected mathematical notation codepoint");
Diags.Report(Range.getBegin(), diag::ext_mathematical_notation)
More information about the cfe-commits
mailing list