[Clang] Silence a "unused variable" warning when building with MSVC
authorAlexandre Ganea <alex_toresh@yahoo.fr>
Tue, 10 Jan 2023 04:45:20 +0000 (23:45 -0500)
committerAlexandre Ganea <alex_toresh@yahoo.fr>
Tue, 10 Jan 2023 04:45:20 +0000 (23:45 -0500)
clang/lib/Lex/LiteralSupport.cpp

index 05575e8..fb2b146 100644 (file)
@@ -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,