projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a58b19
)
[Clang] Silence a "unused variable" warning when building with MSVC
author
Alexandre Ganea
<alex_toresh@yahoo.fr>
Tue, 10 Jan 2023 04:45:20 +0000
(23:45 -0500)
committer
Alexandre Ganea
<alex_toresh@yahoo.fr>
Tue, 10 Jan 2023 04:45:20 +0000
(23:45 -0500)
clang/lib/Lex/LiteralSupport.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Lex/LiteralSupport.cpp
b/clang/lib/Lex/LiteralSupport.cpp
index
05575e8
..
fb2b146
100644
(file)
--- a/
clang/lib/Lex/LiteralSupport.cpp
+++ b/
clang/lib/Lex/LiteralSupport.cpp
@@
-515,8
+515,9
@@
static void DiagnoseInvalidUnicodeCharacterName(
std::string Str;
llvm::UTF32 V = Match.Value;
-
LLVM_ATTRIBUTE_UNUSED
bool Converted =
+ bool Converted =
llvm::convertUTF32ToUTF8String(llvm::ArrayRef<llvm::UTF32>(&V, 1), Str);
+ (void)Converted;
assert(Converted && "Found a match wich is not a unicode character");
Diag(Diags, Features, Loc, TokBegin, TokRangeBegin, TokRangeEnd,