Skip to content

Commit 7034995

Browse files
Fznamznontstellar
authored andcommitted
[clang] Handle Binary StingLiteral kind in one more place (llvm#132201)
The bots are upset by llvm#127629 . Fix that.
1 parent 2e7710e commit 7034995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4143,6 +4143,7 @@ Sema::IsStringLiteralToNonConstPointerConversion(Expr *From, QualType ToType) {
41434143
// We don't allow UTF literals to be implicitly converted
41444144
break;
41454145
case StringLiteralKind::Ordinary:
4146+
case StringLiteralKind::Binary:
41464147
return (ToPointeeType->getKind() == BuiltinType::Char_U ||
41474148
ToPointeeType->getKind() == BuiltinType::Char_S);
41484149
case StringLiteralKind::Wide:

0 commit comments

Comments
 (0)