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:
b069bbf
)
Fix -Wcast-qual const warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 Jul 2019 12:20:28 +0000
(12:20 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 3 Jul 2019 12:20:28 +0000
(12:20 +0000)
llvm-svn: 365031
clang/lib/AST/ExprConstant.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ExprConstant.cpp
b/clang/lib/AST/ExprConstant.cpp
index
21cbd6d
..
5162eb1
100644
(file)
--- a/
clang/lib/AST/ExprConstant.cpp
+++ b/
clang/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;