From: Simon Pilgrim Date: Wed, 3 Jul 2019 12:20:28 +0000 (+0000) Subject: Fix -Wcast-qual const warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cef777b8386d6971b65275715dfd237bf13aa61;p=clang Fix -Wcast-qual const warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 21cbd6dfa1..5162eb1679 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -5615,7 +5615,7 @@ class BufferToAPValueConverter { !EnumSugar && (T->isSpecificBuiltinType(BuiltinType::UChar) || T->isSpecificBuiltinType(BuiltinType::Char_U)); if (!IsStdByte && !IsUChar) { - QualType DisplayType(EnumSugar ? (Type *)EnumSugar : T, 0); + QualType DisplayType(EnumSugar ? (const Type *)EnumSugar : T, 0); Info.FFDiag(BCE->getExprLoc(), diag::note_constexpr_bit_cast_indet_dest) << DisplayType << Info.Ctx.getLangOpts().CharIsSigned;