r365031 - Fix -Wcast-qual const warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 05:20:28 PDT 2019
Author: rksimon
Date: Wed Jul 3 05:20:28 2019
New Revision: 365031
URL: http://llvm.org/viewvc/llvm-project?rev=365031&view=rev
Log:
Fix -Wcast-qual const warning. NFCI.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=365031&r1=365030&r2=365031&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Jul 3 05:20:28 2019
@@ -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;
More information about the cfe-commits
mailing list